home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
idecla2
/
apiconst.asc
next >
Wrap
Text File
|
1994-06-29
|
77KB
|
2,332 lines
''OpenFile() Flags
Global Const OF_READ = &H0
Global Const OF_WRITE = &H1
Global Const OF_READWRITE = &H2
Global Const OF_SHARE_COMPAT = &H0
Global Const OF_SHARE_EXCLUSIVE = &H10
Global Const OF_SHARE_DENY_WRITE = &H20
Global Const OF_SHARE_DENY_READ = &H30
Global Const OF_SHARE_DENY_NONE = &H40
Global Const OF_PARSE = &H100
Global Const OF_DELETE = &H200
Global Const OF_VERIFY = &H400
Global Const OF_CANCEL = &H800
Global Const OF_CREATE = &H1000
Global Const OF_PROMPT = &H2000
Global Const OF_EXIST = &H4000
Global Const OF_REOPEN = &H8000
Global Const TF_FORCEDRIVE = &H80
''GetDriveType return values
Global Const DRIVE_REMOVABLE = 2
Global Const DRIVE_FIXED = 3
Global Const DRIVE_REMOTE = 4
''Global Memory Flags
Global Const GMEM_FIXED = &H0
Global Const GMEM_MOVEABLE = &H2
Global Const GMEM_NOCOMPACT = &H10
Global Const GMEM_NODISCARD = &H20
Global Const GMEM_ZEROINIT = &H40
Global Const GMEM_MODIFY = &H80
Global Const GMEM_DISCARDABLE = &H100
Global Const GMEM_NOT_BANKED = &H1000
Global Const GMEM_SHARE = &H2000
Global Const GMEM_DDESHARE = &H2000
Global Const GMEM_NOTIFY = &H4000
Global Const GMEM_LOWER = GMEM_NOT_BANKED
Global Const GHND = (GMEM_MOVEABLE Or GMEM_ZEROINIT)
Global Const GPTR = (GMEM_FIXED Or GMEM_ZEROINIT)
'Flags returned by GlobalFlags (in addition to GMEM_DISCARDABLE)
Global Const GMEM_DISCARDED = &H4000
Global Const GMEM_LOCKCOUNT = &HFF
''Predefined Resource Types
Global Const RT_CURSOR = 1&
Global Const RT_BITMAP = 2&
Global Const RT_ICON = 3&
Global Const RT_MENU = 4&
Global Const RT_DIALOG = 5&
Global Const RT_STRING = 6&
Global Const RT_FONTDIR = 7&
Global Const RT_FONT = 8&
Global Const RT_ACCELERATOR = 9&
Global Const RT_RCDATA = 10&
'' GetFreeSystemResources constants
Global Const GFSR_SYSTEMRESOURCES = 0
Global Const GFSR_GDIRESOURCES = 1
Global Const GFSR_USERRESOURCES = 2
'' GetWinFlags constants
Global Const WF_PMODE = &H1
Global Const WF_CPU286 = &H2
Global Const WF_CPU386 = &H4
Global Const WF_CPU486 = &H8
Global Const WF_STANDARD = &H10
Global Const WF_WIN286 = &H10
Global Const WF_ENHANCED = &H20
Global Const WF_WIN386 = &H20
Global Const WF_CPU086 = &H40
Global Const WF_CPU186 = &H80
Global Const WF_LARGEFRAME = &H100
Global Const WF_SMALLFRAME = &H200
Global Const WF_80x87 = &H400
'' Parameter error checking constants
Global Const ERR_WARNING = 8
Global Const ERR_PARAM = 4
Global Const ERR_SIZE_MASK = 3
Global Const ERR_BYTE = 1
Global Const ERR_WORD = 2
Global Const ERR_DWORD = 3
Global Const ERR_BAD_VALUE = &H6001
Global Const ERR_BAD_FLAGS = &H6002
Global Const ERR_BAD_INDEX = &H6003
Global Const ERR_BAD_DVALUE = &H7004
Global Const ERR_BAD_DFLAGS = &H7005
Global Const ERR_BAD_DINDEX = &H7006
Global Const ERR_BAD_PTR = &H7007
Global Const ERR_BAD_FUNC_PTR = &H7008
Global Const ERR_BAD_SELECTOR = &H6009
Global Const ERR_BAD_STRING_PTR = &H700a
Global Const ERR_BAD_HANDLE = &H600b
' KERNEL parameter errors
Global Const ERR_BAD_HINSTANCE = &H6020
Global Const ERR_BAD_HMODULE = &H6021
Global Const ERR_BAD_GLOBAL_HANDLE = &H6022
Global Const ERR_BAD_LOCAL_HANDLE = &H6023
Global Const ERR_BAD_ATOM = &H6024
Global Const ERR_BAD_HFILE = &H6025
' USER parameter errors
Global Const ERR_BAD_HWND = &H6040
Global Const ERR_BAD_HMENU = &H6041
Global Const ERR_BAD_HCURSOR = &H6042
Global Const ERR_BAD_HICON = &H6043
Global Const ERR_BAD_HDWP = &H6044
Global Const ERR_BAD_CID = &H6045
Global Const ERR_BAD_HDRVR = &H6046
' GDI parameter errors
Global Const ERR_BAD_COORDS = &H7060
Global Const ERR_BAD_GDI_OBJECT = &H6061
Global Const ERR_BAD_HDC = &H6062
Global Const ERR_BAD_HPEN = &H6063
Global Const ERR_BAD_HFONT = &H6064
Global Const ERR_BAD_HBRUSH = &H6065
Global Const ERR_BAD_HBITMAP = &H6066
Global Const ERR_BAD_HRGN = &H6067
Global Const ERR_BAD_HPALETTE = &H6068
Global Const ERR_BAD_HMETAFILE = &H6069
/**** LogError() values */
' KERNEL errors
Global Const ERR_GALLOC = &H0001
Global Const ERR_GREALLOC = &H0002
Global Const ERR_GLOCK = &H0003
Global Const ERR_LALLOC = &H0004
Global Const ERR_LREALLOC = &H0005
Global Const ERR_LLOCK = &H0006
Global Const ERR_ALLOCRES = &H0007
Global Const ERR_LOCKRES = &H0008
Global Const ERR_LOADMODULE = &H0009
' USER errors
Global Const ERR_CREATEDLG = &H0040
Global Const ERR_CREATEDLG2 = &H0041
Global Const ERR_REGISTERCLASS = &H0042
Global Const ERR_DCBUSY = &H0043
Global Const ERR_CREATEWND = &H0044
Global Const ERR_STRUCEXTRA = &H0045
Global Const ERR_LOADSTR = &H0046
Global Const ERR_LOADMENU = &H0047
Global Const ERR_NESTEDBEGINPAINT = &H0048
Global Const ERR_BADINDEX = &H0049
Global Const ERR_CREATEMENU = &H004a
' GDI errors
Global Const ERR_CREATEDC = &H0080
Global Const ERR_CREATEMETA = &H0081
Global Const ERR_DELOBJSELECTED = &H0082
Global Const ERR_SELBITMAP = &H0083
'' Exit Windows parameters
Global Const EW_RESTARTWINDOWS = &H42
Global Const EW_REBOOTSYSTEM = &H43
''Stock system bitmaps
Global Const OBM_CLOSE = 32754
Global Const OBM_UPARROW = 32753
Global Const OBM_DNARROW = 32752
Global Const OBM_RGARROW = 32751
Global Const OBM_LFARROW = 32750
Global Const OBM_REDUCE = 32749
Global Const OBM_ZOOM = 32748
Global Const OBM_RESTORE = 32747
Global Const OBM_REDUCED = 32746
Global Const OBM_ZOOMD = 32745
Global Const OBM_RESTORED = 32744
Global Const OBM_UPARROWD = 32743
Global Const OBM_DNARROWD = 32742
Global Const OBM_RGARROWD = 32741
Global Const OBM_LFARROWD = 32740
Global Const OBM_MNARROW = 32739
Global Const OBM_COMBO = 32738
Global Const OBM_UPARROWI = 32737
Global Const OBM_DNARROWI = 32736
Global Const OBM_RGARROWI = 32735
Global Const OBM_LFARROWI = 32734
Global Const OBM_OLD_CLOSE = 32767
Global Const OBM_SIZE = 32766
Global Const OBM_OLD_UPARROW = 32765
Global Const OBM_OLD_DNARROW = 32764
Global Const OBM_OLD_RGARROW = 32763
Global Const OBM_OLD_LFARROW = 32762
Global Const OBM_BTSIZE = 32761
Global Const OBM_CHECK = 32760
Global Const OBM_CHECKBOXES = 32759
Global Const OBM_BTNCORNERS = 32758
Global Const OBM_OLD_REDUCE = 32757
Global Const OBM_OLD_ZOOM = 32756
Global Const OBM_OLD_RESTORE = 32755
'' Stock system Icons
Global Const OCR_NORMAL = 32512
Global Const OCR_IBEAM = 32513
Global Const OCR_WAIT = 32514
Global Const OCR_CROSS = 32515
Global Const OCR_UP = 32516
Global Const OCR_SIZE = 32640
Global Const OCR_ICON = 32641
Global Const OCR_SIZENWSE = 32642
Global Const OCR_SIZENESW = 32643
Global Const OCR_SIZEWE = 32644
Global Const OCR_SIZENS = 32645
Global Const OCR_SIZEALL = 32646
Global Const OCR_ICOCUR = 32647
Global Const OIC_SAMPLE = 32512
Global Const OIC_HAND = 32513
Global Const OIC_QUES = 32514
Global Const OIC_BANG = 32515
Global Const OIC_NOTE = 32516
' --------------------------------------------------------------------------
' GDI Section
' --------------------------------------------------------------------------
''Raster-ops (Binary)
Global Const R2_BLACK = 1 ' 0
Global Const R2_NOTMERGEPEN = 2 'DPon
Global Const R2_MASKNOTPEN = 3 'DPna
Global Const R2_NOTCOPYPEN = 4 'PN
Global Const R2_MASKPENNOT = 5 'PDna
Global Const R2_NOT = 6 'Dn
Global Const R2_XORPEN = 7 'DPx
Global Const R2_NOTMASKPEN = 8 'DPan
Global Const R2_MASKPEN = 9 'DPa
Global Const R2_NOTXORPEN = 10 'DPxn
Global Const R2_NOP = 11 'D
Global Const R2_MERGENOTPEN = 12 'DPno
Global Const R2_COPYPEN = 13 'P
Global Const R2_MERGEPENNOT = 14 'PDno
Global Const R2_MERGEPEN = 15 'DPo
Global Const R2_WHITE = 16 '1
'' Raster-ops (Ternary)
Global Const SRCCOPY = &HCC0020 '(DWORD) dest = source
Global Const SRCPAINT = &HEE0086 '(DWORD) dest = source OR dest
Global Const SRCAND = &H8800C6 '(DWORD) dest = source AND dest
Global Const SRCINVERT = &H660046 '(DWORD) dest = source XOR dest
Global Const SRCERASE = &H440328 '(DWORD) dest = source AND (NOT dest )
Global Const NOTSRCCOPY = &H330008 '(DWORD) dest = (NOT source)
Global Const NOTSRCERASE = &H1100A6 '(DWORD) dest = (NOT src) AND (NOT dest)
Global Const MERGECOPY = &HC000CA '(DWORD) dest = (source AND pattern)
Global Const MERGEPAINT = &HBB0226 '(DWORD) dest = (NOT source) OR dest
Global Const PATCOPY = &HF00021 '(DWORD) dest = pattern
Global Const PATPAINT = &HFB0A09 '(DWORD) dest = DPSnoo
Global Const PATINVERT = &H5A0049 '(DWORD) dest = pattern XOR dest
Global Const DSTINVERT = &H550009 '(DWORD) dest = (NOT dest)
Global Const BLACKNESS = &H42& '(DWORD) dest = BLACK
Global Const WHITENESS = &HFF0062 '(DWORD) dest = WHITE
''StretchBlt() Modes
Global Const BLACKONWHITE = 1
Global Const WHITEONBLACK = 2
Global Const COLORONCOLOR = 3
''PolyFill() Modes
Global Const ALTERNATE = 1
Global Const WINDING = 2
''Text Alignment Options
Global Const TA_NOUPDATECP = 0
Global Const TA_UPDATECP = 1
Global Const TA_LEFT = 0
Global Const TA_RIGHT = 2
Global Const TA_CENTER = 6
Global Const TA_TOP = 0
Global Const TA_BOTTOM = 8
Global Const TA_BASELINE = 24
'' ExtTextOut flags
Global Const ETO_GRAYED = 1
Global Const ETO_OPAQUE = 2
Global Const ETO_CLIPPED = 4
'' SetMapperFlags constants
Global Const ASPECT_FILTERING = &H1
''Metafile Functions
Global Const META_SETBKCOLOR = &H201
Global Const META_SETBKMODE = &H102
Global Const META_SETMAPMODE = &H103
Global Const META_SETROP2 = &H104
Global Const META_SETRELABS = &H105
Global Const META_SETPOLYFILLMODE = &H106
Global Const META_SETSTRETCHBLTMODE = &H107
Global Const META_SETTEXTCHAREXTRA = &H108
Global Const META_SETTEXTCOLOR = &H209
Global Const META_SETTEXTJUSTIFICATION = &H20A
Global Const META_SETWINDOWORG = &H20B
Global Const META_SETWINDOWEXT = &H20C
Global Const META_SETVIEWPORTORG = &H20D
Global Const META_SETVIEWPORTEXT = &H20E
Global Const META_OFFSETWINDOWORG = &H20F
Global Const META_SCALEWINDOWEXT = &H400
Global Const META_OFFSETVIEWPORTORG = &H211
Global Const META_SCALEVIEWPORTEXT = &H412
Global Const META_LINETO = &H213
Global Const META_MOVETO = &H214
Global Const META_EXCLUDECLIPRECT = &H415
Global Const META_INTERSECTCLIPRECT = &H416
Global Const META_ARC = &H817
Global Const META_ELLIPSE = &H418
Global Const META_FLOODFILL = &H419
Global Const META_PIE = &H81A
Global Const META_RECTANGLE = &H41B
Global Const META_ROUNDRECT = &H61C
Global Const META_PATBLT = &H61D
Global Const META_SAVEDC = &H1E
Global Const META_SETPIXEL = &H41F
Global Const META_OFFSETCLIPRGN = &H220
Global Const META_TEXTOUT = &H521
Global Const META_BITBLT = &H922
Global Const META_STRETCHBLT = &HB23
Global Const META_POLYGON = &H324
Global Const META_POLYLINE = &H325
Global Const META_ESCAPE = &H626
Global Const META_RESTOREDC = &H127
Global Const META_FILLREGION = &H228
Global Const META_FRAMEREGION = &H429
Global Const META_INVERTREGION = &H12A
Global Const META_PAINTREGION = &H12B
Global Const META_SELECTCLIPREGION = &H12C
Global Const META_SELECTOBJECT = &H12D
Global Const META_SETTEXTALIGN = &H12E
Global Const META_DRAWTEXT = &H62F
Global Const META_CHORD = &H830
Global Const META_SETMAPPERFLAGS = &H231
Global Const META_EXTTEXTOUT = &Ha32
Global Const META_SETDIBTODEV = &Hd33
Global Const META_SELECTPALETTE = &H234
Global Const META_REALIZEPALETTE = &H35
Global Const META_ANIMATEPALETTE = &H436
Global Const META_SETPALENTRIES = &H37
Global Const META_POLYPOLYGON = &H538
Global Const META_RESIZEPALETTE = &H139
Global Const META_DIBBITBLT = &H940
Global Const META_DIBSTRETCHBLT = &Hb41
Global Const META_DIBCREATEPATTERNBRUSH = &H142
Global Const META_STRETCHDIB = &Hf43
Global Const META_DELETEOBJECT = &H1f0
Global Const META_CREATEPALETTE = &Hf7
Global Const META_CREATEBRUSH = &HF8
Global Const META_CREATEPATTERNBRUSH = &H1F9
Global Const META_CREATEPENINDIRECT = &H2FA
Global Const META_CREATEFONTINDIRECT = &H2FB
Global Const META_CREATEBRUSHINDIRECT = &H2FC
Global Const META_CREATEBITMAPINDIRECT = &H2FD
Global Const META_CREATEBITMAP = &H6FE
Global Const META_CREATEREGION = &H6FF
'' Escape Constants
Global Const NEWFRAME = 1
Global Const ABORTDOCCONST = 2
Global Const NEXTBAND = 3
Global Const SETCOLORTABLE = 4
Global Const GETCOLORTABLE = 5
Global Const FLUSHOUTPUT = 6
Global Const DRAFTMODE = 7
Global Const QUERYESCSUPPORT = 8
Global Const SETABORTPROCCONST = 9
Global Const STARTDOCCONST = 10
Global Const ENDDOCAPICONST = 11
Global Const GETPHYSPAGESIZE = 12
Global Const GETPRINTINGOFFSET = 13
Global Const GETSCALINGFACTOR = 14
Global Const MFCOMMENT = 15
Global Const GETPENWIDTH = 16
Global Const SETCOPYCOUNT = 17
Global Const SELECTPAPERSOURCE = 18
Global Const DEVICEDATA = 19
Global Const PASSTHROUGH = 19
Global Const GETTECHNOLGY = 20
Global Const GETTECHNOLOGY = 20
Global Const SETENDCAP = 21
Global Const SETLINEJOIN = 22
Global Const SETMITERLIMIT = 23
Global Const BANDINFO = 24
Global Const DRAWPATTERNRECT = 25
Global Const GETVECTORPENSIZE = 26
Global Const GETVECTORBRUSHSIZE = 27
Global Const ENABLEDUPLEX = 28
Global Const GETSETPAPERBINS = 29
Global Const GETSETPRINTORIENT = 30
Global Const ENUMPAPERBINS = 31
Global Const SETDIBSCALING = 32
Global Const EPSPRINTING = 33
Global Const ENUMPAPERMETRICS = 34
Global Const GETSETPAPERMETRICS = 35
Global Const POSTSCRIPT_DATA = 37
Global Const POSTSCRIPT_IGNORE = 38
Global Const GETEXTENDEDTEXTMETRICS = 256
Global Const GETEXTENTTABLE = 257
Global Const GETPAIRKERNTABLE = 258
Global Const GETTRACKKERNTABLE = 259
Global Const EXTTEXTOUTCONST = 512
Global Const ENABLERELATIVEWIDTHS = 768
Global Const ENABLEPAIRKERNING = 769
Global Const SETKERNTRACK = 770
Global Const SETALLJUSTVALUES = 771
Global Const SETCHARSET = 772
Global Const STRETCHBLTCONST = 2048
Global Const BEGIN_PATH = 4096
Global Const CLIP_TO_PATH = 4097
Global Const END_PATH = 4098
Global Const EXT_DEVICE_CAPS = 4099
Global Const RESTORE_CTM = 4100
Global Const SAVE_CTM = 4101
Global Const SET_ARC_DIRECTION = 4102
Global Const SET_BACKGROUND_COLOR = 4103
Global Const SET_POLY_MODE = 4104
Global Const SET_SCREEN_ANGLE = 4105
Global Const SET_SPREAD = 4106
Global Const TRANSFORM_CTM = 4107
Global Const SET_CLIP_BOX = 4108
Global Const SET_BOUNDS = 4109
Global Const SET_MIRROR_MODE = 4110
''Spooler Error Codes
Global Const SP_NOTREPORTED = &H4000
Global Const SP_ERROR = (-1)
Global Const SP_APPABORT = (-2)
Global Const SP_USERABORT = (-3)
Global Const SP_OUTOFDISK = (-4)
Global Const SP_OUTOFMEMORY = (-5)
Global Const PR_JOBSTATUS = &H0
'' biCompression field constants for DIB
Global Const BI_RGB = 0&
Global Const BI_RLE8 = 1&
Global Const BI_RLE4 = 2&
'' LOGFONT and TEXTMETRIC constants
Global Const OUT_DEFAULT_PRECIS = 0
Global Const OUT_STRING_PRECIS = 1
Global Const OUT_CHARACTER_PRECIS = 2
Global Const OUT_STROKE_PRECIS = 3
Global Const OUT_TT_PRECIS = 4
Global Const OUT_DEVICE_PRECIS = 5
Global Const OUT_RASTER_PRECIS = 6
Global Const OUT_TT_ONLY_PRECIS = 7
Global Const CLIP_DEFAULT_PRECIS = 0
Global Const CLIP_CHARACTER_PRECIS = 1
Global Const CLIP_STROKE_PRECIS = 2
Global Const CLIP_LH_ANGLES = &H10
Global Const CLIP_TT_ALWAYS = &H20
Global Const CLIP_EMBEDDED = &H80
Global Const DEFAULT_QUALITY = 0
Global Const DRAFT_QUALITY = 1
Global Const PROOF_QUALITY = 2
Global Const DEFAULT_PITCH = 0
Global Const FIXED_PITCH = 1
Global Const VARIABLE_PITCH = 2
Global Const TMPF_FIXED_PITCH = 1
Global Const TMPF_VECTOR = 2
Global Const TMPF_DEVICE = 8
Global Const TMPF_TRUETYPE = 4
Global Const ANSI_CHARSET = 0
Global Const DEFAULT_CHARSET = 1
Global Const SYMBOL_CHARSET = 2
Global Const SHIFTJIS_CHARSET = 128
Global Const OEM_CHARSET = 255
Global Const NTM_REGULAR = &H00000040&
Global Const NTM_BOLD = &H00000020&
Global Const NTM_ITALIC = &H00000001&
Global Const LF_FULLFACESIZE = 64
Global Const RASTER_FONTTYPE = 1
Global Const DEVICE_FONTTYPE = 2
Global Const TRUETYPE_FONTTYPE = 4
'Font Families
Global Const FF_DONTCARE = 0 'Don't care or don't know.
Global Const FF_ROMAN = 16 'Variable stroke width, serifed.
'Times Roman, Century Schoolbook, etc.
Global Const FF_SWISS = 32 'Variable stroke width, sans-serifed.
'Helvetica, Swiss, etc.
Global Const FF_MODERN = 48 'Constant stroke width, serifed or sans-serifed.
'Pica, Elite, Courier, etc.
Global Const FF_SCRIPT = 64 'Cursive, etc.
Global Const FF_DECORATIVE = 80 'Old English, etc.
''Font Weights
Global Const FW_DONTCARE = 0
Global Const FW_THIN = 100
Global Const FW_EXTRALIGHT = 200
Global Const FW_LIGHT = 300
Global Const FW_NORMAL = 400
Global Const FW_MEDIUM = 500
Global Const FW_SEMIBOLD = 600
Global Const FW_BOLD = 700
Global Const FW_EXTRABOLD = 800
Global Const FW_HEAVY = 900
Global Const FW_ULTRALIGHT = FW_EXTRALIGHT
Global Const FW_REGULAR = FW_NORMAL
Global Const FW_DEMIBOLD = FW_SEMIBOLD
Global Const FW_ULTRABOLD = FW_EXTRABOLD
Global Const FW_BLACK = FW_HEAVY
''Background Modes
Global Const TRANSPARENT = 1
Global Const OPAQUE = 2
''Mapping Modes
Global Const MM_TEXT = 1
Global Const MM_LOMETRIC = 2
Global Const MM_HIMETRIC = 3
Global Const MM_LOENGLISH = 4
Global Const MM_HIENGLISH = 5
Global Const MM_TWIPS = 6
Global Const MM_ISOTROPIC = 7
Global Const MM_ANISOTROPIC = 8
''Coordinate Modes
Global Const ABSOLUTE = 1
Global Const RELATIVE = 2
''Stock Logical Objects
Global Const WHITE_BRUSH = 0
Global Const LTGRAY_BRUSH = 1
Global Const GRAY_BRUSH = 2
Global Const DKGRAY_BRUSH = 3
Global Const BLACK_BRUSH = 4
Global Const NULL_BRUSH = 5
Global Const HOLLOW_BRUSH = NULL_BRUSH
Global Const WHITE_PEN = 6
Global Const BLACK_PEN = 7
Global Const NULL_PEN = 8
Global Const OEM_FIXED_FONT = 10
Global Const ANSI_FIXED_FONT = 11
Global Const ANSI_VAR_FONT = 12
Global Const SYSTEM_FONT = 13
Global Const DEVICE_DEFAULT_FONT = 14
Global Const DEFAULT_PALETTE = 15
Global Const SYSTEM_FIXED_FONT = 16
''Brush Styles
Global Const BS_SOLID = 0
Global Const BS_NULL = 1
Global Const BS_HOLLOW = BS_NULL
Global Const BS_HATCHED = 2
Global Const BS_PATTERN = 3
Global Const BS_INDEXED = 4
Global Const BS_DIBPATTERN = 5
''Hatch Styles
Global Const HS_HORIZONTAL = 0 '-----
Global Const HS_VERTICAL = 1 '|||||
Global Const HS_FDIAGONAL = 2 '\\\\\
Global Const HS_BDIAGONAL = 3 '/////
Global Const HS_CROSS = 4 '+++++
Global Const HS_DIAGCROSS = 5 'xxxxx
''Pen Styles
Global Const PS_SOLID = 0
Global Const PS_DASH = 1 '-------
Global Const PS_DOT = 2 '.......
Global Const PS_DASHDOT = 3 '_._._._
Global Const PS_DASHDOTDOT = 4 '_.._.._
Global Const PS_NULL = 5
Global Const PS_INSIDEFRAME = 6
'' Bounds Rectangle Constants
Global Const DCB_RESET = 1
Global Const DCB_ACCUMULATE = 2
Global Const DCB_DIRTY = 2
Global Const DCB_SET = 3
Global Const DCB_ENABLE = 4
Global Const DCB_DISABLE = 8
''GetDeviceCaps() Device Parameters
Global Const DRIVERVERSION = 0 'Device driver version
Global Const TECHNOLOGY = 2 'Device classification
Global Const HORZSIZE = 4 'Horizontal size in millimeters
Global Const VERTSIZE = 6 'Vertical size in millimeters
Global Const HORZRES = 8 'Horizontal width in pixels
Global Const VERTRES = 10 'Vertical width in pixels
Global Const BITSPIXEL = 12 'Number of bits per pixel
Global Const PLANES = 14 'Number of planes
Global Const NUMBRUSHES = 16 'Number of brushes the device has
Global Const NUMPENS = 18 'Number of pens the device has
Global Const NUMMARKERS = 20 'Number of markers the device has
Global Const NUMFONTS = 22 'Number of fonts the device has
Global Const NUMCOLORS = 24 'Number of colors the device supports
Global Const PDEVICESIZE = 26 'Size required for device descriptor
Global Const CURVECAPS = 28 'Curve capabilities
Global Const LINECAPS = 30 'Line capabilities
Global Const POLYGONALCAPS = 32 'Polygonal capabilities
Global Const TEXTCAPS = 34 'Text capabilities
Global Const CLIPCAPS = 36 'Clipping capabilities
Global Const RASTERCAPS = 38 'Bitblt capabilities
Global Const ASPECTX = 40 'Length of the X leg
Global Const ASPECTY = 42 'Length of the Y leg
Global Const ASPECTXY = 44 'Length of the hypotenuse
Global Const LOGPIXELSX = 88 'Logical pixels/inch in X
Global Const LOGPIXELSY = 90 'Logical pixels/inch in Y
Global Const SIZEPALETTE = 104 'Number of entries in physical palette
Global Const NUMRESERVED = 106 'Number of reserved entries in palette
Global Const COLORRES = 108 'Actual color resolution
'Device Capability Masks:
''Device Technologies
Global Const DT_PLOTTER = 0 'Vector plotter
Global Const DT_RASDISPLAY = 1 'Raster display
Global Const DT_RASPRINTER = 2 'Raster printer
Global Const DT_RASCAMERA = 3 'Raster camera
Global Const DT_CHARSTREAM = 4 'Character-stream, PLP
Global Const DT_METAFILE = 5 'Metafile, VDM
Global Const DT_DISPFILE = 6 'Display-file
''Curve Capabilities
Global Const CC_NONE = 0 'Curves not supported
Global Const CC_CIRCLES = 1 'Can do circles
Global Const CC_PIE = 2 'Can do pie wedges
Global Const CC_CHORD = 4 'Can do chord arcs
Global Const CC_ELLIPSES = 8 'Can do ellipese
Global Const CC_WIDE = 16 'Can do wide lines
Global Const CC_STYLED = 32 'Can do styled lines
Global Const CC_WIDESTYLED = 64 'Can do wide styled lines
Global Const CC_INTERIORS = 128 'Can do interiors
''Line Capabilities
Global Const LC_NONE = 0 'Lines not supported
Global Const LC_POLYLINE = 2 'Can do polylines
Global Const LC_MARKER = 4 'Can do markers
Global Const LC_POLYMARKER = 8 'Can do polymarkers
Global Const LC_WIDE = 16 'Can do wide lines
Global Const LC_STYLED = 32 'Can do styled lines
Global Const LC_WIDESTYLED = 64 'Can do wide styled lines
Global Const LC_INTERIORS = 128 'Can do interiors
''Polygonal Capabilities
Global Const PC_NONE = 0 'Polygonals not supported
Global Const PC_POLYGON = 1 'Can do polygons
Global Const PC_RECTANGLE = 2 'Can do rectangles
Global Const PC_WINDPOLYGON = 4 'Can do winding polygons
Global Const PC_TRAPEZOID = 4 'Can do trapezoids
Global Const PC_SCANLINE = 8 'Can do scanlines
Global Const PC_WIDE = 16 'Can do wide borders
Global Const PC_STYLED = 32 'Can do styled borders
Global Const PC_WIDESTYLED = 64 'Can do wide styled borders
Global Const PC_INTERIORS = 128 'Can do interiors
''Polygonal Capabilities
Global Const CP_NONE = 0 'No clipping of output
Global Const CP_RECTANGLE = 1 'Output clipped to rects
''Text Capabilities
Global Const TC_OP_CHARACTER = &H1 'Can do OutputPrecision CHARACTER
Global Const TC_OP_STROKE = &H2 'Can do OutputPrecision STROKE
Global Const TC_CP_STROKE = &H4 'Can do ClipPrecision STROKE
Global Const TC_CR_90 = &H8 'Can do CharRotAbility 90
Global Const TC_CR_ANY = &H10 'Can do CharRotAbility ANY
Global Const TC_SF_X_YINDEP = &H20 'Can do ScaleFreedom X_YINDEPENDENT
Global Const TC_SA_DOUBLE = &H40 'Can do ScaleAbility DOUBLE
Global Const TC_SA_INTEGER = &H80 'Can do ScaleAbility INTEGER
Global Const TC_SA_CONTIN = &H100 'Can do ScaleAbility CONTINUOUS
Global Const TC_EA_DOUBLE = &H200 'Can do EmboldenAbility DOUBLE
Global Const TC_IA_ABLE = &H400 'Can do ItalisizeAbility ABLE
Global Const TC_UA_ABLE = &H800 'Can do UnderlineAbility ABLE
Global Const TC_SO_ABLE = &H1000 'Can do StrikeOutAbility ABLE
Global Const TC_RA_ABLE = &H2000 'Can do RasterFontAble ABLE
Global Const TC_VA_ABLE = &H4000 'Can do VectorFontAble ABLE
Global Const TC_RESERVED = &H8000
''Raster Capabilities
Global Const RC_BITBLT = 1 'Can do standard BLT.
Global Const RC_BANDING = 2 'Device requires banding support
Global Const RC_SCALING = 4 'Device requires scaling support
Global Const RC_BITMAP64 = 8 'Device can support >64K bitmap
Global Const RC_GDI20_OUTPUT = &H10 'has 2.0 output calls
Global Const RC_DI_BITMAP = &H80 'supports DIB to memory
Global Const RC_PALETTE = &H100 'supports a palette
Global Const RC_DIBTODEV = &H200 'supports DIBitsToDevice
Global Const RC_BIGFONT = &H400 'supports >64K fonts
Global Const RC_STRETCHBLT = &H800 'supports StretchBlt
Global Const RC_FLOODFILL = &H1000 'supports FloodFill
Global Const RC_STRETCHDIB = &H2000 'supports StretchDIBits
''palette entry flags
Global Const PC_RESERVED = &H1 'palette index used for animation
Global Const PC_EXPLICIT = &H2 'palette index is explicit to device
Global Const PC_NOCOLLAPSE = &H4 'do not match color to system palette
''DIB color table identifiers
Global Const DIB_RGB_COLORS = 0 'color table in RGBTriples
Global Const DIB_PAL_COLORS = 1 'color table in palette indices
''constants for Get/SetSystemPaletteUse()
Global Const SYSPAL_STATIC = 1
Global Const SYSPAL_NOSTATIC = 2
''constants for CreateDIBitmap
Global Const CBM_INIT = &H4& 'initialize bitmap
''DrawText() Format Flags
Global Const DT_TOP = &H0
Global Const DT_LEFT = &H0
Global Const DT_CENTER = &H1
Global Const DT_RIGHT = &H2
Global Const DT_VCENTER = &H4
Global Const DT_BOTTOM = &H8
Global Const DT_WORDBREAK = &H10
Global Const DT_SINGLELINE = &H20
Global Const DT_EXPANDTABS = &H40
Global Const DT_TABSTOP = &H80
Global Const DT_NOCLIP = &H100
Global Const DT_EXTERNALLEADING = &H200
Global Const DT_CALCRECT = &H400
Global Const DT_NOPREFIX = &H800
Global Const DT_INTERNAL = &H1000
''ExtFloodFill style flags
Global Const FLOODFILLBORDER = 0
Global Const FLOODFILLSURFACE = 1
''Scroll Bar Constants
Global Const SB_HORZ = 0
Global Const SB_VERT = 1
Global Const SB_CTL = 2
Global Const SB_BOTH = 3
''Scroll Bar Commands
Global Const SB_LINEUP = 0
Global Const SB_LINEDOWN = 1
Global Const SB_PAGEUP = 2
Global Const SB_PAGEDOWN = 3
Global Const SB_THUMBPOSITION = 4
Global Const SB_THUMBTRACK = 5
Global Const SB_TOP = 6
Global Const SB_BOTTOM = 7
Global Const SB_ENDSCROLL = 8
''ShowWindow() Commands
Global Const SW_HIDE = 0
Global Const SW_SHOWNORMAL = 1
Global Const SW_NORMAL = 1
Global Const SW_SHOWMINIMIZED = 2
Global Const SW_SHOWMAXIMIZED = 3
Global Const SW_MAXIMIZE = 3
Global Const SW_SHOWNOACTIVATE = 4
Global Const SW_SHOW = 5
Global Const SW_MINIMIZE = 6
Global Const SW_SHOWMINNOACTIVE = 7
Global Const SW_SHOWNA = 8
Global Const SW_RESTORE = 9
''Old ShowWindow() Commands
Global Const HIDE_WINDOW = 0
Global Const SHOW_OPENWINDOW = 1
Global Const SHOW_ICONWINDOW = 2
Global Const SHOW_FULLSCREEN = 3
Global Const SHOW_OPENNOACTIVATE = 4
''Identifiers for the WM_SHOWWINDOW message
Global Const SW_PARENTCLOSING = 1
Global Const SW_OTHERZOOM = 2
Global Const SW_PARENTOPENING = 3
Global Const SW_OTHERUNZOOM = 4
'' RedrawWindow flags
Global Const RDW_INVALIDATE = &H0001
Global Const RDW_INTERNALPAINT = &H0002
Global Const RDW_ERASE = &H0004
Global Const RDW_VALIDATE = &H0008
Global Const RDW_NOINTERNALPAINT = &H0010
Global Const RDW_NOERASE = &H0020
Global Const RDW_NOCHILDREN = &H0040
Global Const RDW_ALLCHILDREN = &H0080
Global Const RDW_UPDATENOW = &H0100
Global Const RDW_ERASENOW = &H0200
Global Const RDW_FRAME = &H0400
Global Const RDW_NOFRAME = &H0800
'' ScrollWindowEx flags
Global Const SW_SCROLLCHILDREN = &H0001
Global Const SW_INVALIDATE = &H0002
Global Const SW_ERASE = &H0004
''Region Flags
Global Const ERRORAPI = 0
Global Const NULLREGION = 1
Global Const SIMPLEREGION = 2
Global Const COMPLEXREGION = 3
''CombineRgn() Styles
Global Const RGN_AND = 1
Global Const RGN_OR = 2
Global Const RGN_XOR = 3
Global Const RGN_DIFF = 4
Global Const RGN_COPY = 5
''Virtual Keys, Standard Set
Global Const VK_LBUTTON = &H01
Global Const VK_RBUTTON = &H02
Global Const VK_CANCEL = &H03
Global Const VK_MBUTTON = &H04
Global Const VK_BACK = &H08
Global Const VK_TAB = &H09
Global Const VK_CLEAR = &H0C
Global Const VK_RETURN = &H0D
Global Const VK_SHIFT = &H10
Global Const VK_CONTROL = &H11
Global Const VK_MENU = &H12
Global Const VK_PAUSE = &H13
Global Const VK_CAPITAL = &H14
Global Const VK_ESCAPE = &H1B
Global Const VK_SPACE = &H20
Global Const VK_PRIOR = &H21
Global Const VK_NEXT = &H22
Global Const VK_END = &H23
Global Const VK_HOME = &H24
Global Const VK_LEFT = &H25
Global Const VK_UP = &H26
Global Const VK_RIGHT = &H27
Global Const VK_DOWN = &H28
Global Const VK_SELECT = &H29
Global Const VK_PRINT = &H2A
Global Const VK_EXECUTE = &H2B
Global Const VK_SNAPSHOT = &H2C
Global Const VK_INSERT = &H2D
Global Const VK_DELETE = &H2E
Global Const VK_HELP = &H2F
Global Const VK_NUMPAD0 = &H60
Global Const VK_NUMPAD1 = &H61
Global Const VK_NUMPAD2 = &H62
Global Const VK_NUMPAD3 = &H63
Global Const VK_NUMPAD4 = &H64
Global Const VK_NUMPAD5 = &H65
Global Const VK_NUMPAD6 = &H66
Global Const VK_NUMPAD7 = &H67
Global Const VK_NUMPAD8 = &H68
Global Const VK_NUMPAD9 = &H69
Global Const VK_MULTIPLY = &H6A
Global Const VK_ADD = &H6B
Global Const VK_SEPARATOR = &H6C
Global Const VK_SUBTRACT = &H6D
Global Const VK_DECIMAL = &H6E
Global Const VK_DIVIDE = &H6F
Global Const VK_F1 = &H70
Global Const VK_F2 = &H71
Global Const VK_F3 = &H72
Global Const VK_F4 = &H73
Global Const VK_F5 = &H74
Global Const VK_F6 = &H75
Global Const VK_F7 = &H76
Global Const VK_F8 = &H77
Global Const VK_F9 = &H78
Global Const VK_F10 = &H79
Global Const VK_F11 = &H7A
Global Const VK_F12 = &H7B
Global Const VK_F13 = &H7C
Global Const VK_F14 = &H7D
Global Const VK_F15 = &H7E
Global Const VK_F16 = &H7F
Global Const VK_F17 = &H80
Global Const VK_F18 = &H81
Global Const VK_F19 = &H82
Global Const VK_F20 = &H83
Global Const VK_F21 = &H84
Global Const VK_F22 = &H85
Global Const VK_F23 = &H86
Global Const VK_F24 = &H87
Global Const VK_NUMLOCK = &H90
Global Const VK_SCROLL = &H91
' VK_A thru VK_Z are the same as their ASCII equivalents: 'A' thru 'Z'
' VK_0 thru VK_9 are the same as their ASCII equivalents: '0' thru '0'
'' Queue Status
Global Const QS_KEY = 1
Global Const QS_MOUSEMOVE = 2
Global Const QS_MOUSEBUTTON = 4
Global Const QS_MOUSE = 6
Global Const QS_POSTMESSAGE = 8
Global Const QS_TIMER = &H0010
Global Const QS_PAINT = &H0020
Global Const QS_SENDMESSAGE = &H0040
Global Const QS_ALLINPUT = &H007f
''SetWindowsHook() codes
Global Const WH_MSGFILTER = (-1)
Global Const WH_JOURNALRECORD = 0
Global Const WH_JOURNALPLAYBACK = 1
Global Const WH_KEYBOARD = 2
Global Const WH_GETMESSAGE = 3
Global Const WH_CALLWNDPROC = 4
Global Const WH_CBT = 5
Global Const WH_SYSMSGFILTER = 6
Global Const WH_WINDOWMGR = 7
Global Const WH_HARDWARE = 8
Global Const WH_SHELL = 10
''Hook Codes
Global Const HC_LPLPFNNEXT = (-2)
Global Const HC_LPFNNEXT = (-1)
Global Const HC_ACTION = 0
Global Const HC_GETNEXT = 1
Global Const HC_SKIP = 2
Global Const HC_NOREM = 3
Global Const HC_NOREMOVE = 3
Global Const HC_SYSMODALON = 4
Global Const HC_SYSMODALOFF = 5
''CBT Hook Codes
Global Const HCBT_MOVESIZE = 0
Global Const HCBT_MINMAX = 1
Global Const HCBT_QS = 2
''WH_MSGFILTER Filter Proc Codes
Global Const MSGF_DIALOGBOX = 0
Global Const MSGF_MESSAGEBOX = 1
Global Const MSGF_MENU = 2
Global Const MSGF_MOVE = 3
Global Const MSGF_SIZE = 4
Global Const MSGF_SCROLLBAR = 5
Global Const MSGF_NEXTWINDOW = 6
''Window Manager Hook Codes
Global Const WC_INIT = 1
Global Const WC_SWP = 2
Global Const WC_DEFWINDOWPROC = 3
Global Const WC_MINMAX = 4
Global Const WC_MOVE = 5
Global Const WC_SIZE = 6
Global Const WC_DRAWCAPTION = 7
''Window field offsets for GetWindowLong() and GetWindowWord()
Global Const GWL_WNDPROC = (-4)
Global Const GWW_HINSTANCE = (-6)
Global Const GWW_HWNDPARENT = (-8)
Global Const GWW_ID = (-12)
Global Const GWL_STYLE = (-16)
Global Const GWL_EXSTYLE = (-20)
'' GetWindowLong and and GetWindowWord dialog box constants
Global Const DWL_MSGRESULT = 0
Global Const DWL_DLGPROC = 4
Global Const DWL_USER = 8
''Class field offsets for GetClassLong() and GetClassWord()
Global Const GCL_MENUNAME = (-8)
Global Const GCW_HBRBACKGROUND = (-10)
Global Const GCW_HCURSOR = (-12)
Global Const GCW_HICON = (-14)
Global Const GCW_HMODULE = (-16)
Global Const GCW_CBWNDEXTRA = (-18)
Global Const GCW_CBCLSEXTRA = (-20)
Global Const GCL_WNDPROC = (-24)
Global Const GCW_STYLE = (-26)
Global Const GCW_ATOM = (-32)
''Window Messages
Global Const WM_NULL = &H0
Global Const WM_CREATE = &H1
Global Const WM_DESTROY = &H2
Global Const WM_MOVE = &H3
Global Const WM_SIZE = &H5
Global Const WM_ACTIVATE = &H6
Global Const WM_SETFOCUS = &H7
Global Const WM_KILLFOCUS = &H8
Global Const WM_ENABLE = &HA
Global Const WM_SETREDRAW = &HB
Global Const WM_SETTEXT = &HC
Global Const WM_GETTEXT = &HD
Global Const WM_GETTEXTLENGTH = &HE
Global Const WM_PAINT = &HF
Global Const WM_CLOSE = &H10
Global Const WM_QUERYENDSESSION = &H11
Global Const WM_QUIT = &H12
Global Const WM_QUERYOPEN = &H13
Global Const WM_ERASEBKGND = &H14
Global Const WM_SYSCOLORCHANGE = &H15
Global Const WM_ENDSESSION = &H16
Global Const WM_SYSTEMERROR = &H17
Global Const WM_SHOWWINDOW = &H18
Global Const WM_CTLCOLOR = &H19
Global Const WM_WININICHANGE = &H1A
Global Const WM_DEVMODECHANGE = &H1B
Global Const WM_ACTIVATEAPP = &H1C
Global Const WM_FONTCHANGE = &H1D
Global Const WM_TIMECHANGE = &H1E
Global Const WM_CANCELMODE = &H1F
Global Const WM_SETCURSOR = &H20
Global Const WM_MOUSEACTIVATE = &H21
Global Const WM_CHILDACTIVATE = &H22
Global Const WM_QUEUESYNC = &H23
Global Const WM_GETMINMAXINFO = &H24
Global Const WM_PAINTICON = &H26
Global Const WM_ICONERASEBKGND = &H27
Global Const WM_NEXTDLGCTL = &H28
Global Const WM_SPOOLERSTATUS = &H2A
Global Const WM_DRAWITEM = &H2B
Global Const WM_MEASUREITEM = &H2C
Global Const WM_DELETEITEM = &H2D
Global Const WM_VKEYTOITEM = &H2E
Global Const WM_CHARTOITEM = &H2F
Global Const WM_SETFONT = &H30
Global Const WM_GETFONT = &H31
Global Const WM_COMMNOTIFY = &H44
Global Const WM_QUERYDRAGICON = &H37
Global Const WM_COMPAREITEM = &H39
Global Const WM_COMPACTING = &H41
Global Const WM_WINDOWPOSCHANGING = &H46
Global Const WM_WINDOWPOSCHANGED = &H47
Global Const WM_POWER = &H48
Global Const WM_NCCREATE = &H81
Global Const WM_NCDESTROY = &H82
Global Const WM_NCCALCSIZE = &H83
Global Const WM_NCHITTEST = &H84
Global Const WM_NCPAINT = &H85
Global Const WM_NCACTIVATE = &H86
Global Const WM_GETDLGCODE = &H87
Global Const WM_NCMOUSEMOVE = &HA0
Global Const WM_NCLBUTTONDOWN = &HA1
Global Const WM_NCLBUTTONUP = &HA2
Global Const WM_NCLBUTTONDBLCLK = &HA3
Global Const WM_NCRBUTTONDOWN = &HA4
Global Const WM_NCRBUTTONUP = &HA5
Global Const WM_NCRBUTTONDBLCLK = &HA6
Global Const WM_NCMBUTTONDOWN = &HA7
Global Const WM_NCMBUTTONUP = &HA8
Global Const WM_NCMBUTTONDBLCLK = &HA9
Global Const WM_KEYFIRST = &H100
Global Const WM_KEYDOWN = &H100
Global Const WM_KEYUP = &H101
Global Const WM_CHAR = &H102
Global Const WM_DEADCHAR = &H103
Global Const WM_SYSKEYDOWN = &H104
Global Const WM_SYSKEYUP = &H105
Global Const WM_SYSCHAR = &H106
Global Const WM_SYSDEADCHAR = &H107
Global Const WM_KEYLAST = &H108
Global Const WM_INITDIALOG = &H110
Global Const WM_COMMAND = &H111
Global Const WM_SYSCOMMAND = &H112
Global Const WM_TIMER = &H113
Global Const WM_HSCROLL = &H114
Global Const WM_VSCROLL = &H115
Global Const WM_INITMENU = &H116
Global Const WM_INITMENUPOPUP = &H117
Global Const WM_MENUSELECT = &H11F
Global Const WM_MENUCHAR = &H120
Global Const WM_ENTERIDLE = &H121
Global Const WM_MOUSEFIRST = &H200
Global Const WM_MOUSEMOVE = &H200
Global Const WM_LBUTTONDOWN = &H201
Global Const WM_LBUTTONUP = &H202
Global Const WM_LBUTTONDBLCLK = &H203
Global Const WM_RBUTTONDOWN = &H204
Global Const WM_RBUTTONUP = &H205
Global Const WM_RBUTTONDBLCLK = &H206
Global Const WM_MBUTTONDOWN = &H207
Global Const WM_MBUTTONUP = &H208
Global Const WM_MBUTTONDBLCLK = &H209
Global Const WM_MOUSELAST = &H209
Global Const WM_PARENTNOTIFY = &H210
Global Const WM_MDICREATE = &H220
Global Const WM_MDIDESTROY = &H221
Global Const WM_MDIACTIVATE = &H222
Global Const WM_MDIRESTORE = &H223
Global Const WM_MDINEXT = &H224
Global Const WM_MDIMAXIMIZE = &H225
Global Const WM_MDITILE = &H226
Global Const WM_MDICASCADE = &H227
Global Const WM_MDIICONARRANGE = &H228
Global Const WM_MDIGETACTIVE = &H229
Global Const WM_MDISETMENU = &H230
Global Const WM_DROPFILES = &H233
Global Const WM_CUT = &H300
Global Const WM_COPY = &H301
Global Const WM_PASTE = &H302
Global Const WM_CLEAR = &H303
Global Const WM_UNDO = &H304
Global Const WM_RENDERFORMAT = &H305
Global Const WM_RENDERALLFORMATS = &H306
Global Const WM_DESTROYCLIPBOARD = &H307
Global Const WM_DRAWCLIPBOARD = &H308
Global Const WM_PAINTCLIPBOARD = &H309
Global Const WM_VSCROLLCLIPBOARD = &H30A
Global Const WM_SIZECLIPBOARD = &H30B
Global Const WM_ASKCBFORMATNAME = &H30C
Global Const WM_CHANGECBCHAIN = &H30D
Global Const WM_HSCROLLCLIPBOARD = &H30E
Global Const WM_QUERYNEWPALETTE = &H30F
Global Const WM_PALETTEISCHANGING = &H310
Global Const WM_PALETTECHANGED = &H311
'NOTE: All Message Numbers below &H0400 are RESERVED.
'Private Window Messages Start Here:
Global Const WM_USER = &H400
''WM_SYNCTASK Commands
Global Const ST_BEGINSWP = 0
Global Const ST_ENDSWP = 1
''WinWhere() Area Codes
Global Const HTERROR = (-2)
Global Const HTTRANSPARENT = (-1)
Global Const HTNOWHERE = 0
Global Const HTCLIENT = 1
Global Const HTCAPTION = 2
Global Const HTSYSMENU = 3
Global Const HTGROWBOX = 4
Global Const HTSIZE = HTGROWBOX
Global Const HTMENU = 5
Global Const HTHSCROLL = 6
Global Const HTVSCROLL = 7
Global Const HTREDUCE = 8
Global Const HTZOOM = 9
Global Const HTLEFT = 10
Global Const HTRIGHT = 11
Global Const HTTOP = 12
Global Const HTTOPLEFT = 13
Global Const HTTOPRIGHT = 14
Global Const HTBOTTOM = 15
Global Const HTBOTTOMLEFT = 16
Global Const HTBOTTOMRIGHT = 17
Global Const HTSIZEFIRST = HTLEFT
Global Const HTSIZELAST = HTBOTTOMRIGHT
''WM_MOUSEACTIVATE Return Codes
Global Const MA_ACTIVATE = 1
Global Const MA_ACTIVATEANDEAT = 2
Global Const MA_NOACTIVATE = 3
Global Const MA_NOACTIVATEANDEAT = 4
''Size Message Commands
Global Const SIZENORMAL = 0
Global Const SIZEICONIC = 1
Global Const SIZEFULLSCREEN = 2
Global Const SIZEZOOMSHOW = 3
Global Const SIZEZOOMHIDE = 4
''Key State Masks for Mouse Messages
Global Const MK_LBUTTON = &H1
Global Const MK_RBUTTON = &H2
Global Const MK_SHIFT = &H4
Global Const MK_CONTROL = &H8
Global Const MK_MBUTTON = &H10
''Window Styles
Global Const WS_OVERLAPPED = &H00000&
Global Const WS_POPUP = &H80000000&
Global Const WS_CHILD = &H40000000&
Global Const WS_MINIMIZE = &H20000000&
Global Const WS_VISIBLE = &H10000000&
Global Const WS_DISABLED = &H8000000&
Global Const WS_CLIPSIBLINGS = &H4000000&
Global Const WS_CLIPCHILDREN = &H2000000&
Global Const WS_MAXIMIZE = &H1000000&
Global Const WS_CAPTION = &HC00000& 'WS_BORDER Or WS_DLGFRAME
Global Const WS_BORDER = &H800000&
Global Const WS_DLGFRAME = &H400000&
Global Const WS_VSCROLL = &H200000&
Global Const WS_HSCROLL = &H100000&
Global Const WS_SYSMENU = &H80000&
Global Const WS_THICKFRAME = &H40000&
Global Const WS_GROUP = &H20000&
Global Const WS_TABSTOP = &H10000&
Global Const WS_MINIMIZEBOX = &H20000&
Global Const WS_MAXIMIZEBOX = &H10000&
Global Const WS_TILED = WS_OVERLAPPED
Global Const WS_ICONIC = WS_MINIMIZE
Global Const WS_SIZEBOX = WS_THICKFRAME
'Common Window Styles
Global Const WS_OVERLAPPEDWINDOW = (WS_OVERLAPPED Or WS_CAPTION Or WS_SYSMENU Or WS_THICKFRAME Or WS_MINIMIZEBOX Or WS_MAXIMIZEBOX)
Global Const WS_POPUPWINDOW = (WS_POPUP Or WS_BORDER Or WS_SYSMENU)
Global Const WS_CHILDWINDOW = (WS_CHILD)
Global Const WS_TILEDWINDOW = (WS_OVERLAPPEDWINDOW)
'Extended Window Styles
Global Const WS_EX_DLGMODALFRAME = &H00001&
Global Const WS_EX_NOPARENTNOTIFY = &H00004&
Global Const WS_EX_TOPMOST = &H00008&
Global Const WS_EX_ACCEPTFILES = &H0010&
Global Const WS_EX_TRANSPARENT = &H0020&
' MDI style allows use of all child styles
Global Const MDIS_ALLCHILDSTYLES = &H01&
''Class styles
Global Const CS_VREDRAW = &H1
Global Const CS_HREDRAW = &H2
Global Const CS_KEYCVTWINDOW = &H4
Global Const CS_DBLCLKS = &H8
Global Const CS_OWNDC = &H20
Global Const CS_CLASSDC = &H40
Global Const CS_PARENTDC = &H80
Global Const CS_NOKEYCVT = &H100
Global Const CS_NOCLOSE = &H200
Global Const CS_SAVEBITS = &H800
Global Const CS_BYTEALIGNCLIENT = &H1000
Global Const CS_BYTEALIGNWINDOW = &H2000
Global Const CS_GLOBALCLASS = &H4000 'Global window class
''Predefined Clipboard Formats
Global Const CF_TEXT = 1
Global Const CF_BITMAP = 2
Global Const CF_METAFILEPICT = 3
Global Const CF_SYLK = 4
Global Const CF_DIF = 5
Global Const CF_TIFF = 6
Global Const CF_OEMTEXT = 7
Global Const CF_DIB = 8
Global Const CF_PALETTE = 9
Global Const CF_OWNERDISPLAY = &H80
Global Const CF_DSPTEXT = &H81
Global Const CF_DSPBITMAP = &H82
Global Const CF_DSPMETAFILEPICT = &H83
'"Private" formats don't get GlobalFree()'d
Global Const CF_PRIVATEFIRST = &H200
Global Const CF_PRIVATELAST = &H2FF
'"GDIOBJ" formats do get DeleteObject()'d
Global Const CF_GDIOBJFIRST = &H300
Global Const CF_GDIOBJLAST = &H3FF
''Owner draw control types
Global Const ODT_MENU = 1
Global Const ODT_LISTBOX = 2
Global Const ODT_COMBOBOX = 3
Global Const ODT_BUTTON = 4
'Owner draw actions
Global Const ODA_DRAWENTIRE = &H1
Global Const ODA_SELECT = &H2
Global Const ODA_FOCUS = &H4
'Owner draw state
Global Const ODS_SELECTED = &H1
Global Const ODS_GRAYED = &H2
Global Const ODS_DISABLED = &H4
Global Const ODS_CHECKED = &H8
Global Const ODS_FOCUS = &H10
''PeekMessage() Options
Global Const PM_NOREMOVE = &H0
Global Const PM_REMOVE = &H1
Global Const PM_NOYIELD = &H2
''Flags for _lopen
Global Const READAPI = 0
Global Const WRITEAPI = 1
Global Const READ_WRITE = 2
'' Window placement flags
Global Const CW_USEDEFAULT = &H8000
Global Const WPF_SETMINPOSITION = 1
Global Const WPF_RESTORETOMAXIMIZED = 2
''SetWindowPos Flags
Global Const SWP_NOSIZE = &H1
Global Const SWP_NOMOVE = &H2
Global Const SWP_NOZORDER = &H4
Global Const SWP_NOREDRAW = &H8
Global Const SWP_NOACTIVATE = &H10
Global Const SWP_DRAWFRAME = &H20
Global Const SWP_SHOWWINDOW = &H40
Global Const SWP_HIDEWINDOW = &H80
Global Const SWP_NOCOPYBITS = &H100
Global Const SWP_NOREPOSITION = &H200
Global Const SWP_NOSENDCHANGING = &H400
Global Const SWP_DEFERERASE = &H2000
''SetWindowPos() hwndInsertAfter values
Global Const HWND_TOP = 0
Global Const HWND_BOTTOM = 1
Global Const HWND_TOPMOST = -1
Global Const HWND_NOTOPMOST = -2
Global Const DLGWINDOWEXTRA = 30 'Window extra bytes needed for private dialog classes
''GetSystemMetrics() codes
Global Const SM_CXSCREEN = 0
Global Const SM_CYSCREEN = 1
Global Const SM_CXVSCROLL = 2
Global Const SM_CYHSCROLL = 3
Global Const SM_CYCAPTION = 4
Global Const SM_CXBORDER = 5
Global Const SM_CYBORDER = 6
Global Const SM_CXDLGFRAME = 7
Global Const SM_CYDLGFRAME = 8
Global Const SM_CYVTHUMB = 9
Global Const SM_CXHTHUMB = 10
Global Const SM_CXICON = 11
Global Const SM_CYICON = 12
Global Const SM_CXCURSOR = 13
Global Const SM_CYCURSOR = 14
Global Const SM_CYMENU = 15
Global Const SM_CXFULLSCREEN = 16
Global Const SM_CYFULLSCREEN = 17
Global Const SM_CYKANJIWINDOW = 18
Global Const SM_MOUSEPRESENT = 19
Global Const SM_CYVSCROLL = 20
Global Const SM_CXHSCROLL = 21
Global Const SM_DEBUG = 22
Global Const SM_SWAPBUTTON = 23
Global Const SM_RESERVED1 = 24
Global Const SM_RESERVED2 = 25
Global Const SM_RESERVED3 = 26
Global Const SM_RESERVED4 = 27
Global Const SM_CXMIN = 28
Global Const SM_CYMIN = 29
Global Const SM_CXSIZE = 30
Global Const SM_CYSIZE = 31
Global Const SM_CXFRAME = 32
Global Const SM_CYFRAME = 33
Global Const SM_CXMINTRACK = 34
Global Const SM_CYMINTRACK = 35
Global Const SM_CXDOUBLECLK = 36
Global Const SM_CYDOUBLECLK = 37
Global Const SM_CXICONSPACING = 38
Global Const SM_CYICONSPACING = 39
Global Const SM_MENUDROPALIGNMENT = 40
Global Const SM_PENWINDOWS = 41
Global Const SM_DBCSENABLED = 42
'' System parameters support
Global Const SPI_GETBEEP = 1
Global Const SPI_SETBEEP = 2
Global Const SPI_GETMOUSE = 3
Global Const SPI_SETMOUSE = 4
Global Const SPI_GETBORDER = 5
Global Const SPI_SETBORDER = 6
Global Const SPI_GETKEYBOARDSPEED = 10
Global Const SPI_SETKEYBOARDSPEED = 11
Global Const SPI_LANGDRIVER = 12
Global Const SPI_ICONHORIZONTALSPACING = 13
Global Const SPI_GETSCREENSAVETIMEOUT = 14
Global Const SPI_SETSCREENSAVETIMEOUT = 15
Global Const SPI_GETSCREENSAVEACTIVE = 16
Global Const SPI_SETSCREENSAVEACTIVE = 17
Global Const SPI_GETGRIDGRANULARITY = 18
Global Const SPI_SETGRIDGRANULARITY = 19
Global Const SPI_SETDESKWALLPAPER = 20
Global Const SPI_SETDESKPATTERN = 21
Global Const SPI_GETKEYBOARDDELAY = 22
Global Const SPI_SETKEYBOARDDELAY = 23
Global Const SPI_ICONVERTICALSPACING = 24
Global Const SPI_GETICONTITLEWRAP = 25
Global Const SPI_SETICONTITLEWRAP = 26
Global Const SPI_GETMENUDROPALIGNMENT = 27
Global Const SPI_SETMENUDROPALIGNMENT = 28
Global Const SPI_SETDOUBLECLKWIDTH = 29
Global Const SPI_SETDOUBLECLKHEIGHT = 30
Global Const SPI_GETICONTITLELOGFONT = 31
Global Const SPI_SETDOUBLECLICKTIME = 32
Global Const SPI_SETMOUSEBUTTONSWAP = 33
Global Const SPI_SETICONTITLELOGFONT = 34
Global Const SPI_GETFASTTASKSWITCH = 35
Global Const SPI_SETFASTTASKSWITCH = 36
' SystemParametersInfo flags
Global Const SPIF_UPDATEINIFILE = 1
Global Const SPIF_SENDWININICHANGE = 2
''MessageBox() Flags
Global Const MB_OK = &H0
Global Const MB_OKCANCEL = &H1
Global Const MB_ABORTRETRYIGNORE = &H2
Global Const MB_YESNOCANCEL = &H3
Global Const MB_YESNO = &H4
Global Const MB_RETRYCANCEL = &H5
Global Const MB_ICONHAND = &H10
Global Const MB_ICONQUESTION = &H20
Global Const MB_ICONEXCLAMATION = &H30
Global Const MB_ICONASTERISK = &H40
Global Const MB_ICONINFORMATION = MB_ICONASTERISK
Global Const MB_ICONSTOP = MB_ICONHAND
Global Const MB_DEFBUTTON1 = &H0
Global Const MB_DEFBUTTON2 = &H100
Global Const MB_DEFBUTTON3 = &H200
Global Const MB_APPLMODAL = &H0
Global Const MB_SYSTEMMODAL = &H1000
Global Const MB_TASKMODAL = &H2000
Global Const MB_NOFOCUS = &H8000
Global Const MB_TYPEMASK = &HF
Global Const MB_ICONMASK = &HF0
Global Const MB_DEFMASK = &HF00
Global Const MB_MODEMASK = &H3000
Global Const MB_MISCMASK = &HC000
''Color Types
Global Const CTLCOLOR_MSGBOX = 0
Global Const CTLCOLOR_EDIT = 1
Global Const CTLCOLOR_LISTBOX = 2
Global Const CTLCOLOR_BTN = 3
Global Const CTLCOLOR_DLG = 4
Global Const CTLCOLOR_SCROLLBAR = 5
Global Const CTLCOLOR_STATIC = 6
Global Const CTLCOLOR_MAX = 8 'three bits max
Global Const COLOR_SCROLLBAR = 0
Global Const COLOR_BACKGROUND = 1
Global Const COLOR_ACTIVECAPTION = 2
Global Const COLOR_INACTIVECAPTION = 3
Global Const COLOR_MENU = 4
Global Const COLOR_WINDOW = 5
Global Const COLOR_WINDOWFRAME = 6
Global Const COLOR_MENUTEXT = 7
Global Const COLOR_WINDOWTEXT = 8
Global Const COLOR_CAPTIONTEXT = 9
Global Const COLOR_ACTIVEBORDER = 10
Global Const COLOR_INACTIVEBORDER = 11
Global Const COLOR_APPWORKSPACE = 12
Global Const COLOR_HIGHLIGHT = 13
Global Const COLOR_HIGHLIGHTTEXT = 14
Global Const COLOR_BTNFACE = 15
Global Const COLOR_BTNSHADOW = 16
Global Const COLOR_GRAYTEXT = 17
Global Const COLOR_BTNTEXT = 18
Global Const COLOR_INACTIVECAPTIONTEXT = 19
Global Const COLOR_BTNHIGHLIGHT = 20
''GetWindow() Constants
Global Const GW_HWNDFIRST = 0
Global Const GW_HWNDLAST = 1
Global Const GW_HWNDNEXT = 2
Global Const GW_HWNDPREV = 3
Global Const GW_OWNER = 4
Global Const GW_CHILD = 5
'' GetDCEx flags
Global Const DCX_WINDOW = &H00000001&
Global Const DCX_CACHE = &H00000002&
Global Const DCX_CLIPCHILDREN = &H00000008&
Global Const DCX_CLIPSIBLINGS = &H00000010&
Global Const DCX_PARENTCLIP = &H00000020&
Global Const DCX_EXCLUDERGN = &H00000040&
Global Const DCX_INTERSECTRGN = &H00000080&
Global Const DCX_LOCKWINDOWUPDATE = &H00000400&
Global Const DCX_USESTYLE = &H00010000&
''Menu flags for Add/Check/EnableMenuItem()
Global Const MF_INSERT = &H0
Global Const MF_CHANGE = &H80
Global Const MF_APPEND = &H100
Global Const MF_DELETE = &H200
Global Const MF_REMOVE = &H1000
Global Const MF_BYCOMMAND = &H0
Global Const MF_BYPOSITION = &H400
Global Const MF_SEPARATOR = &H800
Global Const MF_ENABLED = &H0
Global Const MF_GRAYED = &H1
Global Const MF_DISABLED = &H2
Global Const MF_UNCHECKED = &H0
Global Const MF_CHECKED = &H8
Global Const MF_USECHECKBITMAPS = &H200
Global Const MF_STRING = &H0
Global Const MF_BITMAP = &H4
Global Const MF_OWNERDRAW = &H100
Global Const MF_POPUP = &H10
Global Const MF_MENUBARBREAK = &H20
Global Const MF_MENUBREAK = &H40
Global Const MF_UNHILITE = &H0
Global Const MF_HILITE = &H80
Global Const MF_SYSMENU = &H2000
Global Const MF_HELP = &H4000
Global Const MF_MOUSESELECT = &H8000
Global Const MF_END = &H80
'' TrackPopupMenu flags
Global Const TPM_LEFTBUTTON = &H0000
Global Const TPM_RIGHTBUTTON = &H0002
Global Const TPM_LEFTALIGN = &H0000
Global Const TPM_CENTERALIGN = &H0004
Global Const TPM_RIGHTALIGN = &H0008
''System Menu Command Values
Global Const SC_SIZE = &HF000
Global Const SC_MOVE = &HF010
Global Const SC_MINIMIZE = &HF020
Global Const SC_MAXIMIZE = &HF030
Global Const SC_NEXTWINDOW = &HF040
Global Const SC_PREVWINDOW = &HF050
Global Const SC_CLOSE = &HF060
Global Const SC_VSCROLL = &HF070
Global Const SC_HSCROLL = &HF080
Global Const SC_MOUSEMENU = &HF090
Global Const SC_KEYMENU = &HF100
Global Const SC_ARRANGE = &HF110
Global Const SC_RESTORE = &HF120
Global Const SC_TASKLIST = &HF130
Global Const SC_ICON = SC_MINIMIZE
Global Const SC_ZOOM = SC_MAXIMIZE
''Standard Cursor IDs
Global Const IDC_ARROW = 32512&
Global Const IDC_IBEAM = 32513&
Global Const IDC_WAIT = 32514&
Global Const IDC_CROSS = 32515&
Global Const IDC_UPARROW = 32516&
Global Const IDC_SIZE = 32640&
Global Const IDC_ICON = 32641&
Global Const IDC_SIZENWSE = 32642&
Global Const IDC_SIZENESW = 32643&
Global Const IDC_SIZEWE = 32644&
Global Const IDC_SIZENS = 32645&
Global Const ORD_LANGDRIVER = 1 'The ordinal num for language drv entry point.
''Standard Icon IDs
Global Const IDI_APPLICATION = 32512&
Global Const IDI_HAND = 32513&
Global Const IDI_QUESTION = 32514&
Global Const IDI_EXCLAMATION = 32515&
Global Const IDI_ASTERISK = 32516&
''Dialog Box Command IDs
Global Const IDOK = 1
Global Const IDCANCEL = 2
Global Const IDABORT = 3
Global Const IDRETRY = 4
Global Const IDIGNORE = 5
Global Const IDYES = 6
Global Const IDNO = 7
'Control Manager Structures and Definitions
''Edit Control Styles
Global Const ES_LEFT = &H0&
Global Const ES_CENTER = &H1&
Global Const ES_RIGHT = &H2&
Global Const ES_MULTILINE = &H4&
Global Const ES_UPPERCASE = &H8&
Global Const ES_LOWERCASE = &H10&
Global Const ES_PASSWORD = &H20&
Global Const ES_AUTOVSCROLL = &H40&
Global Const ES_AUTOHSCROLL = &H80&
Global Const ES_NOHIDESEL = &H100&
Global Const ES_OEMCONVERT = &H400&
Global Const ES_READONLY = &H800&
Global Const ES_WANTRETURN = &H1000&
''Edit Control Notification Codes
Global Const EN_SETFOCUS = &H100
Global Const EN_KILLFOCUS = &H200
Global Const EN_CHANGE = &H300
Global Const EN_UPDATE = &H400
Global Const EN_ERRSPACE = &H500
Global Const EN_MAXTEXT = &H501
Global Const EN_HSCROLL = &H601
Global Const EN_VSCROLL = &H602
''Edit Control Messages
Global Const EM_GETSEL = WM_USER+0
Global Const EM_SETSEL = WM_USER+1
Global Const EM_GETRECT = WM_USER+2
Global Const EM_SETRECT = WM_USER+3
Global Const EM_SETRECTNP = WM_USER+4
Global Const EM_SCROLL = WM_USER+5
Global Const EM_LINESCROLL = WM_USER+6
Global Const EM_GETMODIFY = WM_USER+8
Global Const EM_SETMODIFY = WM_USER+9
Global Const EM_GETLINECOUNT = WM_USER+10
Global Const EM_LINEINDEX = WM_USER+11
Global Const EM_GETTHUMB = WM_USER+14
Global Const EM_LINELENGTH = WM_USER+17
Global Const EM_REPLACESEL = WM_USER+18
Global Const EM_SETFONT = WM_USER+19
Global Const EM_GETLINE = WM_USER+20
Global Const EM_LIMITTEXT = WM_USER+21
Global Const EM_CANUNDO = WM_USER+22
Global Const EM_UNDO = WM_USER+23
Global Const EM_FMTLINES = WM_USER+24
Global Const EM_LINEFROMCHAR = WM_USER+25
Global Const EM_SETWORDBREAK = WM_USER+26
Global Const EM_SETTABSTOPS = WM_USER+27
Global Const EM_SETPASSWORDCHAR = WM_USER+28
Global Const EM_EMPTYUNDOBUFFER = WM_USER+29
Global Const EM_MSGMAX = WM_USER+30
Global Const EM_GETFIRSTVISIBLELINE = (WM_USER+30)
Global Const EM_SETREADONLY = (WM_USER+31)
Global Const EM_SETWORDBREAKPROC = (WM_USER+32)
Global Const EM_GETWORDBREAKPROC = (WM_USER+33)
Global Const EM_GETPASSWORDCHAR = (WM_USER+34)
Global Const WB_LEFT = 0
Global Const WB_RIGHT = 1
Global Const WB_ISDELIMITER = 2
''Button Control Styles
Global Const BS_PUSHBUTTON = &H0&
Global Const BS_DEFPUSHBUTTON = &H1&
Global Const BS_CHECKBOX = &H2&
Global Const BS_AUTOCHECKBOX = &H3&
Global Const BS_RADIOBUTTON = &H4&
Global Const BS_3STATE = &H5&
Global Const BS_AUTO3STATE = &H6&
Global Const BS_GROUPBOX = &H7&
Global Const BS_USERBUTTON = &H8&
Global Const BS_AUTORADIOBUTTON = &H9&
Global Const BS_PUSHBOX = &HA&
Global Const BS_OWNERDRAW = &HB&
Global Const BS_LEFTTEXT = &H20&
''User Button Notification Codes
Global Const BN_CLICKED = 0
Global Const BN_PAINT = 1
Global Const BN_HILITE = 2
Global Const BN_UNHILITE = 3
Global Const BN_DISABLE = 4
Global Const BN_DOUBLECLICKED = 5
''Button Control Messages
Global Const BM_GETCHECK = WM_USER+0
Global Const BM_SETCHECK = WM_USER+1
Global Const BM_GETSTATE = WM_USER+2
Global Const BM_SETSTATE = WM_USER+3
Global Const BM_SETSTYLE = WM_USER+4
''Static Control Constants
Global Const SS_LEFT = &H0&
Global Const SS_CENTER = &H1&
Global Const SS_RIGHT = &H2&
Global Const SS_ICON = &H3&
Global Const SS_BLACKRECT = &H4&
Global Const SS_GRAYRECT = &H5&
Global Const SS_WHITERECT = &H6&
Global Const SS_BLACKFRAME = &H7&
Global Const SS_GRAYFRAME = &H8&
Global Const SS_WHITEFRAME = &H9&
Global Const SS_USERITEM = &HA&
Global Const SS_SIMPLE = &HB&
Global Const SS_LEFTNOWORDWRAP = &HC&
Global Const SS_NOPREFIX = &H80& 'Don't do "&" character translation
''Dialog Styles
Global Const DS_ABSALIGN = &H1&
Global Const DS_SYSMODAL = &H2&
Global Const DS_LOCALEDIT = &H20& 'Edit items get Local storage.
Global Const DS_SETFONT = &H40& 'User specified font for Dlg controls
Global Const DS_MODALFRAME = &H80& 'Can be combined with WS_CAPTION
Global Const DS_NOIDLEMSG = &H100& 'WM_ENTERIDLE message will not be sent
Global Const DM_GETDEFID = WM_USER+0
Global Const DM_SETDEFID = WM_USER+1
Global Const DC_HASDEFID = &H534% '&H534B
''Dialog Codes
Global Const DLGC_WANTARROWS = &H1 'Control wants arrow keys
Global Const DLGC_WANTTAB = &H2 'Control wants tab keys
Global Const DLGC_WANTALLKEYS = &H4 'Control wants all keys
Global Const DLGC_WANTMESSAGE = &H4 'Pass message to control
Global Const DLGC_HASSETSEL = &H8 'Understands EM_SETSEL message
Global Const DLGC_DEFPUSHBUTTON = &H10 'Default pushbutton
Global Const DLGC_UNDEFPUSHBUTTON = &H20 'Non-default pushbutton
Global Const DLGC_RADIOBUTTON = &H40 'Radio button
Global Const DLGC_WANTCHARS = &H80 'Want WM_CHAR messages
Global Const DLGC_STATIC = &H100 'Static item: don't include
Global Const DLGC_BUTTON = &H2000 'Button item: can be checked
''Listbox Return Values
Global Const LB_CTLCODE = 0&
Global Const LB_OKAY = 0
Global Const LB_ERR = (-1)
Global Const LB_ERRSPACE = (-2)
'
'The idStaticPath parameter to DlgDirList can have the following values
'ORed if the list box should show other details of the files along with
'the name of the files;
'all other details also will be returned
''Listbox Notification Codes
Global Const LBN_ERRSPACE = (-2)
Global Const LBN_SELCHANGE = 1
Global Const LBN_DBLCLK = 2
Global Const LBN_SELCANCEL = 3
Global Const LBN_SETFOCUS = 4
Global Const LBN_KILLFOCUS = 5
''Listbox messages
Global Const LB_ADDSTRING = (WM_USER+1)
Global Const LB_INSERTSTRING = (WM_USER+2)
Global Const LB_DELETESTRING = (WM_USER+3)
Global Const LB_RESETCONTENT = (WM_USER+5)
Global Const LB_SETSEL = (WM_USER+6)
Global Const LB_SETCURSEL = (WM_USER+7)
Global Const LB_GETSEL = (WM_USER+8)
Global Const LB_GETCURSEL = (WM_USER+9)
Global Const LB_GETTEXT = (WM_USER+10)
Global Const LB_GETTEXTLEN = (WM_USER+11)
Global Const LB_GETCOUNT = (WM_USER+12)
Global Const LB_SELECTSTRING = (WM_USER+13)
Global Const LB_DIR = (WM_USER+14)
Global Const LB_GETTOPINDEX = (WM_USER+15)
Global Const LB_FINDSTRING = (WM_USER+16)
Global Const LB_GETSELCOUNT = (WM_USER+17)
Global Const LB_GETSELITEMS = (WM_USER+18)
Global Const LB_SETTABSTOPS = (WM_USER+19)
Global Const LB_GETHORIZONTALEXTENT = (WM_USER+20)
Global Const LB_SETHORIZONTALEXTENT = (WM_USER+21)
Global Const LB_SETCOLUMNWIDTH = (WM_USER+22)
Global Const LB_SETTOPINDEX = (WM_USER+24)
Global Const LB_GETITEMRECT = (WM_USER+25)
Global Const LB_GETITEMDATA = (WM_USER+26)
Global Const LB_SETITEMDATA = (WM_USER+27)
Global Const LB_SELITEMRANGE = (WM_USER+28)
Global Const LB_MSGMAX = (WM_USER+33)
Global Const LB_SETCARETINDEX = (WM_USER+31)
Global Const LB_GETCARETINDEX = (WM_USER+32)
Global Const LB_SETITEMHEIGHT = (WM_USER+33)
Global Const LB_GETITEMHEIGHT = (WM_USER+34)
Global Const LB_FINDSTRINGEXACT = (WM_USER+35)
''Listbox Styles
Global Const LBS_NOTIFY = &H1&
Global Const LBS_SORT = &H2&
Global Const LBS_NOREDRAW = &H4&
Global Const LBS_MULTIPLESEL = &H8&
Global Const LBS_OWNERDRAWFIXED = &H10&
Global Const LBS_OWNERDRAWVARIABLE = &H20&
Global Const LBS_HASSTRINGS = &H40&
Global Const LBS_USETABSTOPS = &H80&
Global Const LBS_NOINTEGRALHEIGHT = &H100&
Global Const LBS_MULTICOLUMN = &H200&
Global Const LBS_WANTKEYBOARDINPUT = &H400&
Global Const LBS_EXTENDEDSEL = &H800&
Global Const LBS_DISABLENOSCROLL = &H1000&
Global Const LBS_STANDARD = (LBS_NOTIFY Or LBS_SORT Or WS_VSCROLL Or WS_BORDER)
''Combo Box return Values
Global Const CB_OKAY = 0
Global Const CB_ERR = (-1)
Global Const CB_ERRSPACE = (-2)
''Combo Box Notification Codes
Global Const CBN_ERRSPACE = (-1)
Global Const CBN_SELCHANGE = 1
Global Const CBN_DBLCLK = 2
Global Const CBN_SETFOCUS = 3
Global Const CBN_KILLFOCUS = 4
Global Const CBN_EDITCHANGE = 5
Global Const CBN_EDITUPDATE = 6
Global Const CBN_DROPDOWN = 7
Global Const CBN_CLOSEUP = 8
Global Const CBN_SELENDOK = 9
Global Const CBN_SELENDCANCEL = 10
''Combo Box styles
Global Const CBS_SIMPLE = &H1&
Global Const CBS_DROPDOWN = &H2&
Global Const CBS_DROPDOWNLIST = &H3&
Global Const CBS_OWNERDRAWFIXED = &H10&
Global Const CBS_OWNERDRAWVARIABLE = &H20&
Global Const CBS_AUTOHSCROLL = &H40&
Global Const CBS_OEMCONVERT = &H80&
Global Const CBS_SORT = &H100&
Global Const CBS_HASSTRINGS = &H200&
Global Const CBS_NOINTEGRALHEIGHT = &H400&
Global Const CBS_DISABLENOSCROLL = &H0800&
''Combo Box messages
Global Const CB_GETEDITSEL = (WM_USER+0)
Global Const CB_LIMITTEXT = (WM_USER+1)
Global Const CB_SETEDITSEL = (WM_USER+2)
Global Const CB_ADDSTRING = (WM_USER+3)
Global Const CB_DELETESTRING = (WM_USER+4)
Global Const CB_DIR = (WM_USER+5)
Global Const CB_GETCOUNT = (WM_USER+6)
Global Const CB_GETCURSEL = (WM_USER+7)
Global Const CB_GETLBTEXT = (WM_USER+8)
Global Const CB_GETLBTEXTLEN = (WM_USER+9)
Global Const CB_INSERTSTRING = (WM_USER+10)
Global Const CB_RESETCONTENT = (WM_USER+11)
Global Const CB_FINDSTRING = (WM_USER+12)
Global Const CB_SELECTSTRING = (WM_USER+13)
Global Const CB_SETCURSEL = (WM_USER+14)
Global Const CB_SHOWDROPDOWN = (WM_USER+15)
Global Const CB_GETITEMDATA = (WM_USER+16)
Global Const CB_SETITEMDATA = (WM_USER+17)
Global Const CB_GETDROPPEDCONTROLRECT = (WM_USER+18)
Global Const CB_SETITEMHEIGHT = (WM_USER+19)
Global Const CB_GETITEMHEIGHT = (WM_USER+20)
Global Const CB_SETEXTENDEDUI = (WM_USER+21)
Global Const CB_GETEXTENDEDUI = (WM_USER+22)
Global Const CB_GETDROPPEDSTATE = (WM_USER+23)
Global Const CB_FINDSTRINGEXACT = (WM_USER+24)
''Scroll Bar Styles
Global Const SBS_HORZ = &H0&
Global Const SBS_VERT = &H1&
Global Const SBS_TOPALIGN = &H2&
Global Const SBS_LEFTALIGN = &H2&
Global Const SBS_BOTTOMALIGN = &H4&
Global Const SBS_RIGHTALIGN = &H4&
Global Const SBS_SIZEBOXTOPLEFTALIGN = &H2&
Global Const SBS_SIZEBOXBOTTOMRIGHTALIGN = &H4&
Global Const SBS_SIZEBOX = &H8&
''Static messages
Global Const STM_SETICON = (WM_USER+0)
Global Const STM_GETICON = (WM_USER+1)
''WaitSoundState() Constants
Global Const S_QUEUEEMPTY = 0
Global Const S_THRESHOLD = 1
Global Const S_ALLTHRESHOLD = 2
''Accent Modes
Global Const S_NORMAL = 0
Global Const S_LEGATO = 1
Global Const S_STACCATO = 2
''SetSoundNoise() Sources
Global Const S_PERIOD512 = 0 'Freq = N/512 high pitch, less coarse hiss
Global Const S_PERIOD1024 = 1 'Freq = N/1024
Global Const S_PERIOD2048 = 2 'Freq = N/2048 low pitch, more coarse hiss
Global Const S_PERIODVOICE = 3 'Source is frequency from voice channel (3)
Global Const S_WHITE512 = 4 'Freq = N/512 high pitch, less coarse hiss
Global Const S_WHITE1024 = 5 'Freq = N/1024
Global Const S_WHITE2048 = 6 'Freq = N/2048 low pitch, more coarse hiss
Global Const S_WHITEVOICE = 7 'Source is frequency from voice channel (3)
Global Const S_SERDVNA = (-1) 'Device not available
Global Const S_SEROFM = (-2) 'Out of memory
Global Const S_SERMACT = (-3) 'Music active
Global Const S_SERQFUL = (-4) 'Queue full
Global Const S_SERBDNT = (-5) 'Invalid note
Global Const S_SERDLN = (-6) 'Invalid note length
Global Const S_SERDCC = (-7) 'Invalid note count
Global Const S_SERDTP = (-8) 'Invalid tempo
Global Const S_SERDVL = (-9) 'Invalid volume
Global Const S_SERDMD = (-10) 'Invalid mode
Global Const S_SERDSH = (-11) 'Invalid shape
Global Const S_SERDPT = (-12) 'Invalid pitch
Global Const S_SERDFQ = (-13) 'Invalid frequency
Global Const S_SERDDR = (-14) 'Invalid duration
Global Const S_SERDSR = (-15) 'Invalid source
Global Const S_SERDST = (-16) 'Invalid state
''COMM declarations
'
Global Const NOPARITY = 0
Global Const ODDPARITY = 1
Global Const EVENPARITY = 2
Global Const MARKPARITY = 3
Global Const SPACEPARITY = 4
Global Const ONESTOPBIT = 0
Global Const ONE5STOPBITS = 1
Global Const TWOSTOPBITS = 2
Global Const IGNORE = 0 'Ignore signal
Global Const INFINITE = &HFFFF 'Infinite timeout
''COMM Error Flags
Global Const CE_RXOVER = &H1 'Receive Queue overflow
Global Const CE_OVERRUN = &H2 'Receive Overrun Error
Global Const CE_RXPARITY = &H4 'Receive Parity Error
Global Const CE_FRAME = &H8 'Receive Framing error
Global Const CE_BREAK = &H10 'Break Detected
Global Const CE_CTSTO = &H20 'CTS Timeout
Global Const CE_DSRTO = &H40 'DSR Timeout
Global Const CE_RLSDTO = &H80 'RLSD Timeout
Global Const CE_TXFULL = &H100 'TX Queue is full
Global Const CE_PTO = &H200 'LPTx Timeout
Global Const CE_IOE = &H400 'LPTx I/O Error
Global Const CE_DNS = &H800 'LPTx Device not selected
Global Const CE_OOP = &H1000 'LPTx Out-Of-Paper
Global Const CE_MODE = &H8000 'Requested mode unsupported
Global Const IE_BADID = (-1) 'Invalid or unsupported id
Global Const IE_OPEN = (-2) 'Device Already Open
Global Const IE_NOPEN = (-3) 'Device Not Open
Global Const IE_MEMORY = (-4) 'Unable to allocate queues
Global Const IE_DEFAULT = (-5) 'Error in default parameters
Global Const IE_HARDWARE = (-10) 'Hardware Not Present
Global Const IE_BYTESIZE = (-11) 'Illegal Byte Size
Global Const IE_BAUDRATE = (-12) 'Unsupported BaudRate
''COMM Events
Global Const EV_RXCHAR = &H1 'Any Character received
Global Const EV_RXFLAG = &H2 'Received certain character
Global Const EV_TXEMPTY = &H4 'Transmitt Queue Empty
Global Const EV_CTS = &H8 'CTS changed state
Global Const EV_DSR = &H10 'DSR changed state
Global Const EV_RLSD = &H20 'RLSD changed state
Global Const EV_BREAK = &H40 'BREAK received
Global Const EV_ERR = &H80 'Line status error occurred
Global Const EV_RING = &H100 'Ring signal detected
Global Const EV_PERR = &H200 'Printer error occured
Global Const EV_CTSS = &H400 'Current state of CTS
Global Const EV_DSRS = &H800 'Current state of DSR
Global Const EV_RLSDS = &H1000 'Current state of RLSD signal
''COMM Escape Functions
Global Const SETXOFF = 1 'Simulate XOFF received
Global Const SETXON = 2 'Simulate XON received
Global Const SETRTS = 3 'Set RTS high
Global Const CLRRTS = 4 'Set RTS low
Global Const SETDTR = 5 'Set DTR high
Global Const CLRDTR = 6 'Set DTR low
Global Const RESETDEV = 7 'Reset device if possible
Global Const GETMAXLPT = 8
Global Const GETMAXCOM = 9
Global Const GETBASEIRQ = 10
Global Const CBR_110 = &HFF10
Global Const CBR_300 = &HFF11
Global Const CBR_600 = &HFF12
Global Const CBR_1200 = &HFF13
Global Const CBR_2400 = &HFF14
Global Const CBR_4800 = &HFF15
Global Const CBR_9600 = &HFF16
Global Const CBR_14400 = &HFF17
Global Const CBR_19200 = &HFF18
Global Const CBR_38400 = &HFF1B
Global Const CBR_56000 = &HFF1F
Global Const CBR_128000 = &HFF23
Global Const CBR_256000 = &HFF27
'' COMM notifications on WM_COMMNOTIFY messages
Global Const CN_RECEIVE = &H0001
Global Const CN_TRANSMIT = &H0002
Global Const CN_EVENT = &H0004
'' COMM status flags
Global Const CSTF_CTSHOLD = &H01
Global Const CSTF_DSRHOLD = &H02
Global Const CSTF_RLSDHOLD = &H04
Global Const CSTF_XOFFHOLD = &H08
Global Const CSTF_XOFFSENT = &H10
Global Const CSTF_EOF = &H20
Global Const CSTF_TXIM = &H40
Global Const LPTx = &H80 'Set if ID is for LPT device
' Help engine section.
''Commands to pass WinHelp()
Global Const HELP_CONTEXT = &H1 'Display topic in ulTopic
Global Const HELP_QUIT = &H2 'Terminate help
Global Const HELP_INDEX = &H3 'Display index
Global Const HELP_HELPONHELP = &H4 'Display help on using help
Global Const HELP_SETINDEX = &H5 'Set the current Index for multi index help
Global Const HELP_KEY = &H101 'Display topic for keyword in offabData
Global Const HELP_MULTIKEY = &H201
'' Printer and device support constants
' field selection bits
Global Const DM_ORIENTATION = &H0000001&
Global Const DM_PAPERSIZE = &H0000002&
Global Const DM_PAPERLENGTH = &H0000004&
Global Const DM_PAPERWIDTH = &H0000008&
Global Const DM_SCALE = &H0000010&
Global Const DM_COPIES = &H0000100&
Global Const DM_DEFAULTSOURCE = &H0000200&
Global Const DM_PRINTQUALITY = &H0000400&
Global Const DM_COLOR = &H0000800&
Global Const DM_DUPLEX = &H0001000&
Global Const DM_YRESOLUTION = &H0002000&
Global Const DM_TTOPTION = &H0004000&
'' printer orientation selections
Global Const DMORIENT_PORTRAIT = 1
Global Const DMORIENT_LANDSCAPE = 2
'' paper selections
' Warning: The PostScript driver mistakingly uses DMPAPER_ values between
' 50 and 56. Don't use this range when defining new paper sizes.
Global Const DMPAPER_LETTER = 1 'Letter 8 1/2 x 11 in
Global Const DMPAPER_LETTERSMALL = 2 'Letter Small 8 1/2 x 11 in
Global Const DMPAPER_TABLOID = 3 'Tabloid 11 x 17 in
Global Const DMPAPER_LEDGER = 4 'Ledger 17 x 11 in
Global Const DMPAPER_LEGAL = 5 'Legal 8 1/2 x 14 in
Global Const DMPAPER_STATEMENT = 6 'Statement 5 1/2 x 8 1/2 in
Global Const DMPAPER_EXECUTIVE = 7 'Executive 7 1/4 x 10 1/2 in
Global Const DMPAPER_A3 = 8 'A3 297 x 420 mm
Global Const DMPAPER_A4 = 9 'A4 210 x 297 mm
Global Const DMPAPER_A4SMALL = 10 'A4 Small 210 x 297 mm
Global Const DMPAPER_A5 = 11 'A5 148 x 210 mm
Global Const DMPAPER_B4 = 12 'B4 250 x 354
Global Const DMPAPER_B5 = 13 'B5 182 x 257 mm
Global Const DMPAPER_FOLIO = 14 'Folio 8 1/2 x 13 in
Global Const DMPAPER_QUARTO = 15 'Quarto 215 x 275 mm
Global Const DMPAPER_10X14 = 16 '10x14 in
Global Const DMPAPER_11X17 = 17 '11x17 in
Global Const DMPAPER_NOTE = 18 'Note 8 1/2 x 11 in
Global Const DMPAPER_ENV_9 = 19 'Envelope #9 3 7/8 x 8 7/8
Global Const DMPAPER_ENV_10 = 20 'Envelope #10 4 1/8 x 9 1/2
Global Const DMPAPER_ENV_11 = 21 'Envelope #11 4 1/2 x 10 3/8
Global Const DMPAPER_ENV_12 = 22 'Envelope #12 4 \276 x 11
Global Const DMPAPER_ENV_14 = 23 'Envelope #14 5 x 11 1/2
Global Const DMPAPER_CSHEET = 24 'C size sheet
Global Const DMPAPER_DSHEET = 25 'D size sheet
Global Const DMPAPER_ESHEET = 26 'E size sheet
Global Const DMPAPER_ENV_DL = 27 'Envelope DL 110 x 220mm
Global Const DMPAPER_ENV_C5 = 28 'Envelope C5 162 x 229 mm
Global Const DMPAPER_ENV_C3 = 29 'Envelope C3 324 x 458 mm
Global Const DMPAPER_ENV_C4 = 30 'Envelope C4 229 x 324 mm
Global Const DMPAPER_ENV_C6 = 31 'Envelope C6 114 x 162 mm
Global Const DMPAPER_ENV_C65 = 32 'Envelope C65 114 x 229 mm
Global Const DMPAPER_ENV_B4 = 33 'Envelope B4 250 x 353 mm
Global Const DMPAPER_ENV_B5 = 34 'Envelope B5 176 x 250 mm
Global Const DMPAPER_ENV_B6 = 35 'Envelope B6 176 x 125 mm
Global Const DMPAPER_ENV_ITALY = 36 'Envelope 110 x 230 mm
Global Const DMPAPER_ENV_MONARCH = 37 'Envelope Monarch 3.875 x 7.5 in
Global Const DMPAPER_ENV_PERSONAL = 38 '6 3/4 Envelope 3 5/8 x 6 1/2 in
Global Const DMPAPER_FANFOLD_US = 39 'US Std Fanfold 14 7/8 x 11 in
Global Const DMPAPER_FANFOLD_STD_GERMAN = 40 'German Std Fanfold 8 1/2 x 12 in
Global Const DMPAPER_FANFOLD_LGL_GERMAN = 41 'German Legal Fanfold 8 1/2 x 13 in
Global Const DMPAPER_USER = 256
'' printer bin selections
Global Const DMBIN_UPPER = 1
Global Const DMBIN_ONLYONE = 1
Global Const DMBIN_LOWER = 2
Global Const DMBIN_MIDDLE = 3
Global Const DMBIN_MANUAL = 4
Global Const DMBIN_ENVELOPE = 5
Global Const DMBIN_ENVMANUAL = 6
Global Const DMBIN_AUTO = 7
Global Const DMBIN_TRACTOR = 8
Global Const DMBIN_SMALLFMT = 9
Global Const DMBIN_LARGEFMT = 10
Global Const DMBIN_LARGECAPACITY = 11
Global Const DMBIN_CASSETTE = 14
Global Const DMBIN_USER = 256 'device specific bins start here
'' print qualities
Global Const DMRES_DRAFT = -1
Global Const DMRES_LOW = -2
Global Const DMRES_MEDIUM = -3
Global Const DMRES_HIGH = -4
'' color enable/disable for color printers
Global Const DMCOLOR_MONOCHROME = 1
Global Const DMCOLOR_COLOR = 2
'' Printer duplex enable
Global Const DMDUP_SIMPLEX = 1
Global Const DMDUP_VERTICAL = 2
Global Const DMDUP_HORIZONTAL = 3
'' TrueType options
Global Const DMTT_BITMAP = 1 'print TT fonts as graphics
Global Const DMTT_DOWNLOAD = 2 'download TT fonts as soft fonts
Global Const DMTT_SUBDEV = 3 'substitute device fonts for TT fonts
'' device mode function modes
Global Const DM_UPDATE = 1
Global Const DM_COPY = 2
Global Const DM_PROMPT = 4
Global Const DM_MODIFY = 8
Global Const DM_IN_BUFFER = 8
Global Const DM_IN_PROMPT = 4
Global Const DM_OUT_BUFFER = 2
Global Const DM_OUT_DEFAULT = 1
'' device capabilities indices
Global Const DC_FIELDS = 1
Global Const DC_PAPERS = 2
Global Const DC_PAPERSIZE = 3
Global Const DC_MINEXTENT = 4
Global Const DC_MAXEXTENT = 5
Global Const DC_BINS = 6
Global Const DC_DUPLEX = 7
Global Const DC_SIZE = 8
Global Const DC_EXTRA = 9
Global Const DC_VERSION = 10
Global Const DC_DRIVER = 11
Global Const DC_BINNAMES = 12
Global Const DC_ENUMRESOLUTIONS = 13
Global Const DC_FILEDEPENDENCIES = 14
Global Const DC_TRUETYPE = 15
Global Const DC_PAPERNAMES = 16
Global Const DC_ORIENTATION = 17
Global Const DC_COPIES = 18
' DC_TRUETYPE bit fields
Global Const DCTT_BITMAP = &H0000001&
Global Const DCTT_DOWNLOAD = &H0000002&
Global Const DCTT_SUBDEV = &H0000004&
'' LZ encode constants
Global Const LZERROR_BADINHANDLE = -1 'invalid input handle
Global Const LZERROR_BADOUTHANDLE = -2 'invalid output handle
Global Const LZERROR_READ = -3 'corrupt compressed file format
Global Const LZERROR_WRITE = -4 'out of space for output file
Global Const LZERROR_GLOBALLOC = -5 'insufficient memory for LZFile struct
Global Const LZERROR_GLOBLOCK = -6 'bad global handle
Global Const LZERROR_BADVALUE = -7 'input parameter out of range
Global Const LZERROR_UNKNOWNALG = -8 'compression algorithm not recognized
'' Version Control Resources
Global Const VS_FILE_INFO = 16 'Version stamp res type
Global Const VS_VERSION_INFO = 1 'Version stamp res ID
Global Const VS_USER_DEFINED = 100 'User-defined res IDs
'' Version control flags
Global Const VS_FFI_SIGNATURE = &HFEEF04BD&
Global Const VS_FFI_STRUCVERSION = &H00010000&
Global Const VS_FFI_FILEFLAGSMASK = &H0000003F&
Global Const VS_FF_DEBUG = &H00000001&
Global Const VS_FF_PRERELEASE = &H00000002&
Global Const VS_FF_PATCHED = &H00000004&
Global Const VS_FF_PRIVATEBUILD = &H00000008&
Global Const VS_FF_INFOINFERRED = &H00000010&
Global Const VS_FF_SPECIALBUILD = &H00000020&
'' Version control OS flags
Global Const VOS_UNKNOWN = &H00000000&
Global Const VOS_DOS = &H00010000&
Global Const VOS_OS216 = &H00020000&
Global Const VOS_OS232 = &H00030000&
Global Const VOS_NT = &H00040000&
Global Const VOS__BASE = &H00000000&
Global Const VOS__WINDOWS16 = &H00000001&
Global Const VOS__PM16 = &H00000002&
Global Const VOS__PM32 = &H00000003&
Global Const VOS__WINDOWS32 = &H00000004&
Global Const VOS_DOS_WINDOWS16 = &H00010001&
Global Const VOS_DOS_WINDOWS32 = &H00010004&
Global Const VOS_OS216_PM16 = &H00020002&
Global Const VOS_OS232_PM32 = &H00030003&
Global Const VOS_NT_WINDOWS32 = &H00040004&
'' Version control file types
Global Const VFT_UNKNOWN = &H00000000&
Global Const VFT_APP = &H00000001&
Global Const VFT_DLL = &H00000002&
Global Const VFT_DRV = &H00000003&
Global Const VFT_FONT = &H00000004&
Global Const VFT_VXD = &H00000005&
Global Const VFT_STATIC_LIB = &H00000007&
' VS_VERSION.dwFileSubtype for VFT_WINDOWS_DRV
Global Const VFT2_UNKNOWN = &H00000000&
Global Const VFT2_DRV_PRINTER = &H00000001&
Global Const VFT2_DRV_KEYBOARD = &H00000002&
Global Const VFT2_DRV_LANGUAGE = &H00000003&
Global Const VFT2_DRV_DISPLAY = &H00000004&
Global Const VFT2_DRV_MOUSE = &H00000005&
Global Const VFT2_DRV_NETWORK = &H00000006&
Global Const VFT2_DRV_SYSTEM = &H00000007&
Global Const VFT2_DRV_INSTALLABLE = &H00000008&
Global Const VFT2_DRV_SOUND = &H00000009&
Global Const VFT2_DRV_COMM = &H0000000A&
' VS_VERSION.dwFileSubtype for VFT_WINDOWS_FONT
Global Const VFT2_FONT_RASTER = &H00000001&
Global Const VFT2_FONT_VECTOR = &H00000002&
Global Const VFT2_FONT_TRUETYPE = &H00000003&
'' VerFindFile() flags
Global Const VFFF_ISSHAREDFILE = &H0001
Global Const VFF_CURNEDEST = &H0001
Global Const VFF_FILEINUSE = &H0002
Global Const VFF_BUFFTOOSMALL = &H0004
'' VerInstallFile() flags
Global Const VIFF_FORCEINSTALL = &H0001
Global Const VIFF_DONTDELETEOLD = &H0002
Global Const VIF_TEMPFILE = &H00000001&
Global Const VIF_MISMATCH = &H00000002&
Global Const VIF_SRCOLD = &H00000004&
Global Const VIF_DIFFLANG = &H00000008&
Global Const VIF_DIFFCODEPG = &H00000010&
Global Const VIF_DIFFTYPE = &H00000020&
Global Const VIF_WRITEPROT = &H00000040&
Global Const VIF_FILEINUSE = &H00000080&
Global Const VIF_OUTOFSPACE = &H00000100&
Global Const VIF_ACCESSVIOLATION = &H00000200&
Global Const VIF_SHARINGVIOLATION = &H00000400&
Global Const VIF_CANNOTCREATE = &H00000800&
Global Const VIF_CANNOTDELETE = &H00001000&
Global Const VIF_CANNOTRENAME = &H00002000&
Global Const VIF_CANNOTDELETECUR = &H00004000&
Global Const VIF_OUTOFMEMORY = &H00008000&
Global Const VIF_CANNOTREADSRC = &H00010000&
Global Const VIF_CANNOTREADDST = &H00020000&
Global Const VIF_BUFFTOOSMALL = &H00040000&
'' WM_NCHITTEST constants
Global Const HTERROR = -2 'On screen background or dividing line
Global Const HTTRANSPARENT = -1 'In a window covered by another window
Global Const HTNOWHERE = 0 'Same as HTERROR
Global Const HTCLIENT = 1 'In the client area
Global Const HTCAPTION = 2 'In the caption bar
Global Const HTSYSMENU = 3 'In the system menu
Global Const HTSIZE = 4 'In the size box
Global Const HTMENU = 5 'In a menu
Global Const HTHSCROLL = 6 'In a horizontal scroll bar
Global Const HTVSCROLL = 7 'In a vertical scroll bar
Global Const HTMINBUTTON = 8 'In a minimize button
Global Const HTMAXBUTTON = 9 'In a maximize button
Global Const HTLEFT = 10 'On the left border
Global Const HTRIGHT = 11 'On the right border
Global Const HTTOP = 12 'On the top border
Global Const HTTOPLEFT = 13 'On the top left border
Global Const HTTOPRIGHT = 14 'On the top right border
Global Const HTBOTTOM = 15 'On the bottom border
Global Const HTBOTTOMLEFT = 16 'On the bottom left border
Global Const HTBOTTOMRIGHT = 17 'On the bottom right border
Global Const HTBORDER = 18 'On a border that is not a sizing border
'' WM_POWER window message and DRV_POWER driver notification */
Global Const PWR_OK = 1
Global Const PWR_FAIL = (-1)
Global Const PWR_SUSPENDREQUEST = 1
Global Const PWR_SUSPENDRESUME = 2
Global Const PWR_CRITICALRESUME = 3
'' SendMessageFlag
Global Const HWND_BROADCAST = -1
'' Network Connection Errors
Global Const WN_NOT_CONNECTED = &H0030
Global Const WN_OPEN_FILES = &H0031
Global Const WN_BAD_NETNAME = &H0032
Global Const WN_BAD_LOCALNAME = &H0033
Global Const WN_ALREADY_CONNECTED = &H0034
Global Const WN_DEVICE_ERROR = &H0035
Global Const WN_CONNECTION_CLOSED = &H0036